TravelAlert Data Type

An object defining the basic abilities we want all of our hibernate objects to have.

Properties
name data type description
timestamp number This is the time the alert entered our system. Not to be confused with getDateTime()
destination TravelAlertDestination
severity TravelAlertSeverity
start number
end number
description string
link string
datetime number This is the time the alert entered the vendor's system. Not to be confused with getTimestamp()
latitude number
longitude number
type TravelAlertType
stateCode string
metroCode string
cityName string
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

{
  "timestamp" : 12345,
  "destination" : {
    "name" : "...",
    "countryCode" : "...",
    "country" : true,
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "severity" : {
    "name" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "start" : 12345,
  "end" : 12345,
  "description" : "...",
  "link" : "...",
  "datetime" : 12345,
  "latitude" : 12345.0,
  "longitude" : 12345.0,
  "type" : {
    "type" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "stateCode" : "...",
  "metroCode" : "...",
  "cityName" : "...",
  "id" : 12345,
  "version" : 12345,
  "violations" : [ {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  }, {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  } ]
}