示例#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();
 }
示例#2
0
 public static void deleteAll() {
   for (User user : User.findAll()) {
     user.delete();
   }
 }