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