Class Country

All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, IEntity, ISortableEntity

@Entity public class Country extends SimpleEntity
Entity representing a political country.
iso2Code: mandatory, upper case 2-letter code, must be unique for all countries
diallingCode: optional, area telephone code for this country
postalPrefix: optional, prefix used in front of zip codes on postal addresses
currency: optional, currency of this country
See Also:
  • Constructor Details

    • Country

      public Country()
      standard constructor
  • Method Details

    • getIso2Code

      public String getIso2Code()
      Returns:
      ISO 3166-1 Alpha 2 country code (2 letters, upper case).
    • setIso2Code

      public void setIso2Code(String iso2Code)
      Parameters:
      iso2Code - ISO 3166-1 Alpha 2 country code (2 letters, upper case).
    • getPostalPrefix

      public String getPostalPrefix()
    • setPostalPrefix

      public void setPostalPrefix(String postalPrefix)
    • getDiallingCode

      public String getDiallingCode()
    • setDiallingCode

      public void setDiallingCode(String diallingCode)
    • getCurrency

      public Currency getCurrency()
    • setCurrency

      public void setCurrency(Currency currency)