From 248f34d0e87664c4357907613ac23f64bf09c21b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 1 Apr 2020 19:28:36 +0200 Subject: [PATCH] Continued: - SearchCountryByCodeI18nKey is not required when you can use AllCountries query plus Objects.equals() on both. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/org/mxchange/jcountry/model/data/CountryData.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/mxchange/jcountry/model/data/CountryData.java b/src/org/mxchange/jcountry/model/data/CountryData.java index bd0b8ed..c6591f8 100644 --- a/src/org/mxchange/jcountry/model/data/CountryData.java +++ b/src/org/mxchange/jcountry/model/data/CountryData.java @@ -42,8 +42,7 @@ import org.mxchange.jcoreutils.Comparables; @Table (name = "country_data") @NamedQueries ( { - @NamedQuery (name = "AllCountries", query = "SELECT c FROM country_data AS c ORDER BY c.countryId ASC"), - @NamedQuery (name = "SearchCountryByCodeI18nKey", query = "SELECT c FROM country_data AS c WHERE c.countryCode = :code OR c.countryI18nKey = :key") + @NamedQuery (name = "AllCountries", query = "SELECT c FROM country_data AS c ORDER BY c.countryId ASC") } ) @SuppressWarnings ("PersistenceUnitPresent") -- 2.39.5