Countries are nations with a centralized government that occupy a particular area.
| name | data type | description |
|---|---|---|
| name | string | The name of the country. |
| code | string | The two letter code of the country. |
| codeAlt | string | An alternate code commonly used for this country. |
| phoneCode | number | The international phone code for this country. |
| position | number | The position of this country in drop-downs. |
Properties inherited from BaseHibernateEntity |
||
| id | number | The unique internal ID of the object. |
| version | number | For internal use only. This is the serialization recorder for optimistic locking of several objects between sessions. |
Properties inherited from BaseEntity |
||
| violations | array of SimpleViolation | A list of constraint violations, if any, that this object has. |
Example
{
"name" : "...",
"code" : "...",
"codeAlt" : "...",
"phoneCode" : 12345,
"position" : 12345,
"id" : 12345,
"version" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
}