@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/clearFunction.sql" }) public void test_create_with_tenantId_null() { FunctionEntity function = FunctionEntity.builder().code("code").name("name").active(true).level(1).parentId("1") .level(1).build(); functionJdbcRepository.create(function); }
public FunctionEntity create(FunctionEntity entity) { super.create(entity); return entity; }
FunctionJdbcRepository extends JdbcRepository { public FunctionEntity create(FunctionEntity entity) { super.create(entity); return entity; } }
FunctionJdbcRepository extends JdbcRepository { public FunctionEntity create(FunctionEntity entity) { super.create(entity); return entity; } FunctionJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
FunctionJdbcRepository extends JdbcRepository { public FunctionEntity create(FunctionEntity entity) { super.create(entity); return entity; } FunctionJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); FunctionEntity create(FunctionEntity entity); FunctionEntity update(FunctionEntity entity); Pagination<Function> search(FunctionSearch domain); FunctionEntity findById(FunctionEntity entity); }
FunctionJdbcRepository extends JdbcRepository { public FunctionEntity create(FunctionEntity entity) { super.create(entity); return entity; } FunctionJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); FunctionEntity create(FunctionEntity entity); FunctionEntity update(FunctionEntity entity); Pagination<Function> search(FunctionSearch domain); FunctionEntity findById(FunctionEntity entity);  }