@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearAccountDetailKey.sql" }) public void test_create_with_tenantId_null() { AccountDetailKeyEntity accountDetailKey = AccountDetailKeyEntity.builder().id("1").key("1") .accountDetailTypeId(getAccountDetailType().getId()).build(); accountDetailKeyJdbcRepository.create(accountDetailKey); }
public AccountDetailKeyEntity create(AccountDetailKeyEntity entity) { super.create(entity); return entity; }
AccountDetailKeyJdbcRepository extends JdbcRepository { public AccountDetailKeyEntity create(AccountDetailKeyEntity entity) { super.create(entity); return entity; } }
AccountDetailKeyJdbcRepository extends JdbcRepository { public AccountDetailKeyEntity create(AccountDetailKeyEntity entity) { super.create(entity); return entity; } AccountDetailKeyJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
AccountDetailKeyJdbcRepository extends JdbcRepository { public AccountDetailKeyEntity create(AccountDetailKeyEntity entity) { super.create(entity); return entity; } AccountDetailKeyJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountDetailKeyEntity create(AccountDetailKeyEntity entity); AccountDetailKeyEntity update(AccountDetailKeyEntity entity); Pagination<AccountDetailKey> search(AccountDetailKeySearch domain); AccountDetailKeyEntity findById(AccountDetailKeyEntity entity); }
AccountDetailKeyJdbcRepository extends JdbcRepository { public AccountDetailKeyEntity create(AccountDetailKeyEntity entity) { super.create(entity); return entity; } AccountDetailKeyJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountDetailKeyEntity create(AccountDetailKeyEntity entity); AccountDetailKeyEntity update(AccountDetailKeyEntity entity); Pagination<AccountDetailKey> search(AccountDetailKeySearch domain); AccountDetailKeyEntity findById(AccountDetailKeyEntity entity);  }