Exemple #1
0
 public void update(E entity) {
   prepareObjectForSaveOrUpdate(entity);
   Object primaryKey = getSqlMapClientTemplate().update(getUpdateQuery(), entity);
 }
Exemple #2
0
 public void save(E entity) {
   prepareObjectForSaveOrUpdate(entity);
   Object primaryKey = getSqlMapClientTemplate().insert(getInsertQuery(), entity);
 }