Example #1
0
 @Override
 public void insert(Logo entity) {
   if (entity.getId() == null) {
     // TODO get new id from sequence
     entity.setId(LogoDao.getInternalId(entity.getPosition()));
   }
   super.insert(entity);
 }
Example #2
0
 @Override
 protected Integer getId(Logo l) {
   return l.getPosition();
 }
Example #3
0
 @Override
 protected void fromObject(Logo l, StoreQuery<?> q) {
   q.addValue(OFC_LOGO.POS, l.getPosition());
   q.addValue(OFC_LOGO.IMAGE, l.getImage());
 }