@Test(expected = DataIntegrityViolationException.class) @Sql(scripts = { "/sql/budgetdetail/clearBudgetDetail.sql" }) public void test_create_with_tenantId_null() { BudgetDetailEntity budgetDetail = BudgetDetailEntity.builder().anticipatoryAmount(BigDecimal.ONE) .approvedAmount(BigDecimal.ONE).budgetAvailable(BigDecimal.ONE).originalAmount(BigDecimal.ONE) .budgetId("1").budgetGroupId("1").planningPercent(BigDecimal.valueOf(1500)).build(); budgetDetailJdbcRepository.create(budgetDetail); }
public BudgetDetailEntity create(final BudgetDetailEntity entity) { entity.setId(UUID.randomUUID().toString().replace("-", "")); super.create(entity); return entity; }
BudgetDetailJdbcRepository extends JdbcRepository { public BudgetDetailEntity create(final BudgetDetailEntity entity) { entity.setId(UUID.randomUUID().toString().replace("-", "")); super.create(entity); return entity; } }
BudgetDetailJdbcRepository extends JdbcRepository { public BudgetDetailEntity create(final BudgetDetailEntity entity) { entity.setId(UUID.randomUUID().toString().replace("-", "")); super.create(entity); return entity; } BudgetDetailJdbcRepository(final NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); }
BudgetDetailJdbcRepository extends JdbcRepository { public BudgetDetailEntity create(final BudgetDetailEntity entity) { entity.setId(UUID.randomUUID().toString().replace("-", "")); super.create(entity); return entity; } BudgetDetailJdbcRepository(final NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); BudgetDetailEntity create(final BudgetDetailEntity entity); BudgetDetailEntity update(final BudgetDetailEntity entity); BudgetDetailEntity delete(final BudgetDetailEntity entity); Pagination<BudgetDetail> search(final BudgetDetailSearch domain); BudgetDetailEntity findById(final BudgetDetailEntity entity); }
BudgetDetailJdbcRepository extends JdbcRepository { public BudgetDetailEntity create(final BudgetDetailEntity entity) { entity.setId(UUID.randomUUID().toString().replace("-", "")); super.create(entity); return entity; } BudgetDetailJdbcRepository(final NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); BudgetDetailEntity create(final BudgetDetailEntity entity); BudgetDetailEntity update(final BudgetDetailEntity entity); BudgetDetailEntity delete(final BudgetDetailEntity entity); Pagination<BudgetDetail> search(final BudgetDetailSearch domain); BudgetDetailEntity findById(final BudgetDetailEntity entity);  }