@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = {"/sql/clearAccountEntity.sql"}) public void test_create_with_tenantId_null() { AccountEntityEntity accountEntity = AccountEntityEntity.builder().code("code").name("name").active(true) .accountDetailTypeId(getAccountDetaialType().getId()).description("entity").build(); accountEntityJdbcRepository.create(accountEntity); }
public AccountEntityEntity create(AccountEntityEntity entity) { super.create(entity); return entity; }
AccountEntityJdbcRepository extends JdbcRepository { public AccountEntityEntity create(AccountEntityEntity entity) { super.create(entity); return entity; } }
AccountEntityJdbcRepository extends JdbcRepository { public AccountEntityEntity create(AccountEntityEntity entity) { super.create(entity); return entity; } AccountEntityJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
AccountEntityJdbcRepository extends JdbcRepository { public AccountEntityEntity create(AccountEntityEntity entity) { super.create(entity); return entity; } AccountEntityJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountEntityEntity create(AccountEntityEntity entity); AccountEntityEntity update(AccountEntityEntity entity); Pagination<AccountEntity> search(AccountEntitySearch domain); AccountEntityEntity findById(AccountEntityEntity entity); }
AccountEntityJdbcRepository extends JdbcRepository { public AccountEntityEntity create(AccountEntityEntity entity) { super.create(entity); return entity; } AccountEntityJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountEntityEntity create(AccountEntityEntity entity); AccountEntityEntity update(AccountEntityEntity entity); Pagination<AccountEntity> search(AccountEntitySearch domain); AccountEntityEntity findById(AccountEntityEntity entity);  }