public Boolean addCfacontentFramework(CfacontentFramework c) {
   if (c != null) {
     super.getHibernateTemplate().save(c);
     return true;
   }
   return false;
 }
Пример #2
0
  public void insert(String uid, Date date) {
    if (uid == null) throw new RuntimeException("uid must be set.");

    String dateStr = new SimpleDateFormat(ACCESSLOG_DATE_FORMAT).format(date);
    Accesslog entity = new Accesslog(null, uid, dateStr);

    super.getHibernateTemplate().save(entity);
  }
 public void add(TransferApp transferApp) {
   super.getHibernateTemplate().save(transferApp);
 }
 @Override
 public void save(T entity) {
   super.getHibernateTemplate().save(entity);
 }
Пример #5
0
 public void insert(Admin admin) throws Exception {
   super.getSession().save(admin);
 }