@Test @Sql(scripts = { "/sql/clearLicense.sql" }) public void testCreate() { TradeLicenseEntity tradeLicenseEntity = getTradeLicenseEntity(); TradeLicenseEntity actualResult = tradeLicenseJdbcRepository.create(tradeLicenseEntity); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egtl_license", new TradeLicenseResultExtractor()); Map<String, Object> row = result.get(0); assertThat(row.get("tenantId")).isEqualTo(actualResult.getTenantId()); assertThat(row.get("active")).isEqualTo(actualResult.getActive()); assertThat(row.get("oldLicenseNumber")).isEqualTo(actualResult.getOldLicenseNumber()); }
public TradeLicenseEntity create(TradeLicenseEntity entity) { super.create(entity); return entity; }
TradeLicenseJdbcRepository extends JdbcRepository { public TradeLicenseEntity create(TradeLicenseEntity entity) { super.create(entity); return entity; } }
TradeLicenseJdbcRepository extends JdbcRepository { public TradeLicenseEntity create(TradeLicenseEntity entity) { super.create(entity); return entity; }  }
TradeLicenseJdbcRepository extends JdbcRepository { public TradeLicenseEntity create(TradeLicenseEntity entity) { super.create(entity); return entity; }  TradeLicenseEntity create(TradeLicenseEntity entity); TradeLicenseEntity update(TradeLicenseEntity entity); List<TradeLicenseEntity> search(LicenseSearch domain); Long getLicenseApplicationId(Long licenseId); Long getLicenseBillId(Long licenseId); Long getApplicationBillId(Long licenseId); }
TradeLicenseJdbcRepository extends JdbcRepository { public TradeLicenseEntity create(TradeLicenseEntity entity) { super.create(entity); return entity; }  TradeLicenseEntity create(TradeLicenseEntity entity); TradeLicenseEntity update(TradeLicenseEntity entity); List<TradeLicenseEntity> search(LicenseSearch domain); Long getLicenseApplicationId(Long licenseId); Long getLicenseBillId(Long licenseId); Long getApplicationBillId(Long licenseId); @Autowired
	public NamedParameterJdbcTemplate namedParameterJdbcTemplate; }