import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
import javax.persistence.Table;
/**
*/
@Entity (name = "country_data")
@Table (name = "country_data")
+@NamedQueries (
+ @NamedQuery (name = "AllCountries", query = "SELECT c FROM country_data AS c ORDER BY c.countryId ASC")
+)
public class CountryData implements Country, Comparable<Country> {
/**
* Id number
*/
@Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
+ @GeneratedValue (strategy = GenerationType.IDENTITY)
@Column (name = "country_id", length = 20, nullable = false, updatable = false)
private Long countryId;