@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearFund.sql" }) public void test_create_with_tenantId_null() { FundEntity fund = FundEntity.builder().code("code").name("name").active(true).level(1l) .parentId("1").identifier('F').build(); fundJdbcRepository.create(fund); }
public FundEntity create(FundEntity entity) { super.create(entity); return entity; }
FundJdbcRepository extends JdbcRepository { public FundEntity create(FundEntity entity) { super.create(entity); return entity; } }
FundJdbcRepository extends JdbcRepository { public FundEntity create(FundEntity entity) { super.create(entity); return entity; } FundJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
FundJdbcRepository extends JdbcRepository { public FundEntity create(FundEntity entity) { super.create(entity); return entity; } FundJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); FundEntity create(FundEntity entity); FundEntity update(FundEntity entity); boolean delete(FundEntity entity,String reason); Pagination<Fund> search(FundSearch domain); FundEntity findById(FundEntity entity); }
FundJdbcRepository extends JdbcRepository { public FundEntity create(FundEntity entity) { super.create(entity); return entity; } FundJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); FundEntity create(FundEntity entity); FundEntity update(FundEntity entity); boolean delete(FundEntity entity,String reason); Pagination<Fund> search(FundSearch domain); FundEntity findById(FundEntity entity);  }