- SearchCountryByCodeI18nKey is not required when you can use AllCountries query
plus Objects.equals() on both.
Signed-off-by: Roland Häder <roland@mxchange.org>
@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")