예제 #1
0
 @Override
 @Transactional
 // @PreAuthorize("hasPermission('" + PayrollSectionName.US_STATE
 // + "', T(com.epayroll.constant.PermissionType).DELETE)")
 public void removeState(Long stateId) throws InstanceNotFoundException {
   stateDao.remove(stateId);
 }
예제 #2
0
 @Override
 @Transactional
 // @PreAuthorize("hasPermission('" + PayrollSectionName.US_STATE
 // + "', T(com.epayroll.constant.PermissionType).INSERT)")
 public UsState addState(UsState state) {
   stateDao.save(state);
   return state;
 }
예제 #3
0
 @Override
 @Transactional
 public List<UsState> findStates() {
   return stateDao.getEntities();
 }
예제 #4
0
 @Override
 @Transactional
 public UsState findState(Long id) throws InstanceNotFoundException {
   return stateDao.find(id);
 }
예제 #5
0
 @Override
 @Transactional
 public UsState updateState(UsState state) {
   return stateDao.update(state);
 }