From: Roland Häder Date: Wed, 1 Apr 2020 17:28:36 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=248f34d0e87664c4357907613ac23f64bf09c21b;p=jcountry-core.git Continued: - SearchCountryByCodeI18nKey is not required when you can use AllCountries query plus Objects.equals() on both. Signed-off-by: Roland Häder --- 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")