@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearBank.sql" }) public void test_create_with_tenantId_null() { BankEntity bank = BankEntity.builder().code("code").name("name").active(true).build(); bankJdbcRepository.create(bank); }
public BankEntity create(BankEntity entity) { super.create(entity); return entity; }
BankJdbcRepository extends JdbcRepository { public BankEntity create(BankEntity entity) { super.create(entity); return entity; } }
BankJdbcRepository extends JdbcRepository { public BankEntity create(BankEntity entity) { super.create(entity); return entity; } BankJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
BankJdbcRepository extends JdbcRepository { public BankEntity create(BankEntity entity) { super.create(entity); return entity; } BankJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankEntity create(BankEntity entity); BankEntity update(BankEntity entity); Pagination<Bank> search(BankSearch domain); BankEntity findById(BankEntity entity); }
BankJdbcRepository extends JdbcRepository { public BankEntity create(BankEntity entity) { super.create(entity); return entity; } BankJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankEntity create(BankEntity entity); BankEntity update(BankEntity entity); Pagination<Bank> search(BankSearch domain); BankEntity findById(BankEntity entity);  }