@Modifying @Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW) public void save(final Roles entity) { if (entity.getId() != null && entity.getUsers().getId() != null && entity.getRole() != null) { this.queryString = QUERY_STRING_SAVE_ROLES_BY_ENTITY; this.values = new Object[] {entity.getId(), entity.getUsers().getId(), entity.getRole()}; super.save(entity); } }
@Modifying @Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void delete(final Long id) { super.delete(id); }
@Modifying @Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void delete(final Roles entity) { super.delete(entity); }