@Entity(name="GEO_COUNTRY") public class Country extends Location
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_CODE |
static int |
CODE_MAX_LENGTH
Taille max d'un code pays.
|
static String |
ENTITY_NAME |
static String |
QUERY_FIND_BY_COUNTRY_CODE |
ATTR_NAME, NAME_MAX_LENGTH, QUERY_FIND_LIKE_NAMEDEFAULT_STRING_LENGTH, ID| Modifier | Constructor and Description |
|---|---|
protected |
Country()
Constructeur par défaut pour la persistence.
|
|
Country(Continent continent,
String code,
Location location)
Constructeur général.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCode()
Retourne le code pays.
|
Continent |
getContinent() |
Geoname |
getGeoname() |
int |
hashCode() |
void |
setCode(String code)
Met à jour le code du pays.
|
void |
setContinent(Continent continent) |
void |
setGeoname(Geoname geoname) |
String |
toString() |
getAltitude, getId, getLatitude, getLongitude, getName, setAltitude, setId, setLatitude, setLongitude, setNamepublic static final String ENTITY_NAME
public static final String QUERY_FIND_BY_COUNTRY_CODE
public static final int CODE_MAX_LENGTH
public static final String ATTR_CODE
public String getCode()
public void setCode(String code)
code - Le code du pays.public Continent getContinent()
public void setContinent(Continent continent)
public Geoname getGeoname()
public void setGeoname(Geoname geoname)
Copyright © 2012. All Rights Reserved.