@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearAccountDetailType.sql" }) public void test_create_with_tenantId_null() { AccountDetailTypeEntity accountDetailType = AccountDetailTypeEntity.builder().tablename("contractor") .fullyQualifiedName("abc/contractor").name("name").active(true).build(); accountDetailTypeJdbcRepository.create(accountDetailType); }
public AccountDetailTypeEntity create(AccountDetailTypeEntity entity) { super.create(entity); return entity; }
AccountDetailTypeJdbcRepository extends JdbcRepository { public AccountDetailTypeEntity create(AccountDetailTypeEntity entity) { super.create(entity); return entity; } }
AccountDetailTypeJdbcRepository extends JdbcRepository { public AccountDetailTypeEntity create(AccountDetailTypeEntity entity) { super.create(entity); return entity; } AccountDetailTypeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
AccountDetailTypeJdbcRepository extends JdbcRepository { public AccountDetailTypeEntity create(AccountDetailTypeEntity entity) { super.create(entity); return entity; } AccountDetailTypeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountDetailTypeEntity create(AccountDetailTypeEntity entity); AccountDetailTypeEntity update(AccountDetailTypeEntity entity); Pagination<AccountDetailType> search(AccountDetailTypeSearch domain); AccountDetailTypeEntity findById(AccountDetailTypeEntity entity); }
AccountDetailTypeJdbcRepository extends JdbcRepository { public AccountDetailTypeEntity create(AccountDetailTypeEntity entity) { super.create(entity); return entity; } AccountDetailTypeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); AccountDetailTypeEntity create(AccountDetailTypeEntity entity); AccountDetailTypeEntity update(AccountDetailTypeEntity entity); Pagination<AccountDetailType> search(AccountDetailTypeSearch domain); AccountDetailTypeEntity findById(AccountDetailTypeEntity entity);  }