/** 更新(更新ユーザを指定) */ @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public RoleFunctionsEntity update(Integer user, RoleFunctionsEntity entity) { RoleFunctionsEntity db = selectOnKey(entity.getFunctionKey(), entity.getRoleId()); entity.setInsertUser(db.getInsertUser()); entity.setInsertDatetime(db.getInsertDatetime()); entity.setDeleteFlag(db.getDeleteFlag()); entity.setUpdateUser(user); entity.setUpdateDatetime(new Timestamp(new java.util.Date().getTime())); return physicalUpdate(entity); }
/** 登録(登録ユーザを指定) */ @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public RoleFunctionsEntity insert(Integer user, RoleFunctionsEntity entity) { entity.setInsertUser(user); entity.setInsertDatetime(new Timestamp(new java.util.Date().getTime())); entity.setUpdateUser(user); entity.setUpdateDatetime(new Timestamp(new java.util.Date().getTime())); entity.setDeleteFlag(0); entity.setRowId(createRowId()); return physicalInsert(entity); }