@Test @Sql(scripts = { "/sql/vouchersubtype/clearvouchersubtype.sql", "/sql/vouchersubtype/insertvouchersubtypeData.sql" }) public void test_update() { VoucherSubTypeEntity voucherSubType = VoucherSubTypeEntity.builder().id("b96561462fdc484fa97fa72c3944ad89") .voucherType(VoucherType.STANDARD_VOUCHER_TYPE_CONTRA.toString()).voucherName("BankToBankTestU") .voucherNamePrefix("CSL").exclude(true).build(); voucherSubType.setTenantId("default"); VoucherSubTypeEntity actualResult = voucherSubTypeJdbcRepository.update(voucherSubType); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_vouchersubtype", new VoucherSubTypeResultExtractor()); Map<String, Object> row = result.get(0); assertThat(row.get("id").toString()).isEqualTo("b96561462fdc484fa97fa72c3944ad89"); assertThat(row.get("voucherType")).isEqualTo(actualResult.getVoucherType()); assertThat(row.get("voucherName")).isEqualTo(actualResult.getVoucherName()); assertThat(row.get("voucherNamePrefix")).isEqualTo(actualResult.getVoucherNamePrefix()); }
public VoucherSubTypeEntity update(VoucherSubTypeEntity entity) { super.update(entity); return entity; }
VoucherSubTypeJdbcRepository extends JdbcRepository { public VoucherSubTypeEntity update(VoucherSubTypeEntity entity) { super.update(entity); return entity; } }
VoucherSubTypeJdbcRepository extends JdbcRepository { public VoucherSubTypeEntity update(VoucherSubTypeEntity entity) { super.update(entity); return entity; } VoucherSubTypeJdbcRepository(
            NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
VoucherSubTypeJdbcRepository extends JdbcRepository { public VoucherSubTypeEntity update(VoucherSubTypeEntity entity) { super.update(entity); return entity; } VoucherSubTypeJdbcRepository(
            NamedParameterJdbcTemplate namedParameterJdbcTemplate); VoucherSubTypeEntity create(VoucherSubTypeEntity entity); VoucherSubTypeEntity update(VoucherSubTypeEntity entity); Pagination<VoucherSubType> search(VoucherSubTypeSearch domain); }
VoucherSubTypeJdbcRepository extends JdbcRepository { public VoucherSubTypeEntity update(VoucherSubTypeEntity entity) { super.update(entity); return entity; } VoucherSubTypeJdbcRepository(
            NamedParameterJdbcTemplate namedParameterJdbcTemplate); VoucherSubTypeEntity create(VoucherSubTypeEntity entity); VoucherSubTypeEntity update(VoucherSubTypeEntity entity); Pagination<VoucherSubType> search(VoucherSubTypeSearch domain);  }