Exemplo n.º 1
0
 public static void saveNew(String myThread, Post_thread newThread, String expt, Long userId) {
   newThread.excerpt = expt + "...";
   newThread.user = User.getById(userId);
   newThread.save();
 }
Exemplo n.º 2
0
 public static void deleteAll() {
   for (User user : User.findAll()) {
     user.delete();
   }
 }