@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearAccountCodePurpose.sql" }) public void test_create_with_tenantId_null() { AccountCodePurposeEntity accountCodePurpose = AccountCodePurposeEntity.builder().name("name").build(); accountCodePurposeJdbcRepository.create(accountCodePurpose); }
public AccountCodePurposeEntity create(AccountCodePurposeEntity entity) { super.create(entity); return entity; }
AccountCodePurposeJdbcRepository extends JdbcRepository { public AccountCodePurposeEntity create(AccountCodePurposeEntity entity) { super.create(entity); return entity; } }
AccountCodePurposeJdbcRepository extends JdbcRepository { public AccountCodePurposeEntity create(AccountCodePurposeEntity entity) { super.create(entity); return entity; } AccountCodePurposeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
AccountCodePurposeJdbcRepository extends JdbcRepository { public AccountCodePurposeEntity create(AccountCodePurposeEntity entity) { super.create(entity); return entity; } AccountCodePurposeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountCodePurposeEntity create(AccountCodePurposeEntity entity); AccountCodePurposeEntity update(AccountCodePurposeEntity entity); Pagination<AccountCodePurpose> search(AccountCodePurposeSearch domain); AccountCodePurposeEntity findById(AccountCodePurposeEntity entity); Boolean uniqueCheck(String fieldName, AccountCodePurposeEntity accountCodePurpose); }
AccountCodePurposeJdbcRepository extends JdbcRepository { public AccountCodePurposeEntity create(AccountCodePurposeEntity entity) { super.create(entity); return entity; } AccountCodePurposeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountCodePurposeEntity create(AccountCodePurposeEntity entity); AccountCodePurposeEntity update(AccountCodePurposeEntity entity); Pagination<AccountCodePurpose> search(AccountCodePurposeSearch domain); AccountCodePurposeEntity findById(AccountCodePurposeEntity entity); Boolean uniqueCheck(String fieldName, AccountCodePurposeEntity accountCodePurpose);  }