@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearBankBranch.sql" }) public void test_create_with_tenantId_null() { BankBranchEntity bankBranch = BankBranchEntity.builder().code("code").name("name").active(true).build(); bankBranchJdbcRepository.create(bankBranch); }
public BankBranchEntity create(BankBranchEntity entity) { super.create(entity); return entity; }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity create(BankBranchEntity entity) { super.create(entity); return entity; } }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity create(BankBranchEntity entity) { super.create(entity); return entity; } BankBranchJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity create(BankBranchEntity entity) { super.create(entity); return entity; } BankBranchJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankBranchEntity create(BankBranchEntity entity); BankBranchEntity update(BankBranchEntity entity); Pagination<BankBranch> search(BankBranchSearch domain); BankBranchEntity findById(BankBranchEntity entity); }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity create(BankBranchEntity entity) { super.create(entity); return entity; } BankBranchJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankBranchEntity create(BankBranchEntity entity); BankBranchEntity update(BankBranchEntity entity); Pagination<BankBranch> search(BankBranchSearch domain); BankBranchEntity findById(BankBranchEntity entity);  }