@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearBankAccount.sql" }) public void test_create_with_tenantId_null() { BankAccountEntity bankAccount = BankAccountEntity.builder().accountNumber("001").active(true).build(); bankAccountJdbcRepository.create(bankAccount); }
public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } BankAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } BankAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankAccountEntity create(BankAccountEntity entity); BankAccountEntity update(BankAccountEntity entity); Pagination<BankAccount> search(BankAccountSearch domain); BankAccountEntity findById(BankAccountEntity entity); }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } BankAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankAccountEntity create(BankAccountEntity entity); BankAccountEntity update(BankAccountEntity entity); Pagination<BankAccount> search(BankAccountSearch domain); BankAccountEntity findById(BankAccountEntity entity);  }