Exemple #1
0
  @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);
    }
  }
Exemple #2
0
 @Modifying
 @Transactional(readOnly = false, propagation = Propagation.REQUIRED)
 public void delete(final Long id) {
   super.delete(id);
 }
Exemple #3
0
 @Modifying
 @Transactional(readOnly = false, propagation = Propagation.REQUIRED)
 public void delete(final Roles entity) {
   super.delete(entity);
 }