weatherForecast Data Type

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

Namespace
(Default)
Schema
ns0.xsd
Properties
name data type type namespace min/max occurs constraints description
city city element 1/1 required The city code that this forecast is for.
conditions string element 1/1 required The weather conditions, in a word format.
day dateTime element 1/1 required The day that this forecast is for.
icon string element 1/1 required  
maxTemp int element 1/1 required int The maximum temperature for this forecast.
minTemp int element 1/1 required int The minimum temperature for this forecast.
requestTimestamp dateTime element 0/1   The time that this forecast was requested from the provider
Properties inherited from baseHibernateEntity
id long element 0/1   The unique internal ID of the object.
version long element 0/1   For internal use only. This is the serialization recorder for optimistic locking of several objects between sessions.
Properties inherited from baseEntity
violations list of simpleViolation element 0/unbounded   A list of constraint violations, if any, that this object has.

Example

<weatherForecast>
  <requestTimestamp>...</requestTimestamp>
  <city>
    <code>...</code>
    <countryCode>...</countryCode>
    <latitude>...</latitude>
    <longitude>...</longitude>
    <name>...</name>
    <stateOrCountry>...</stateOrCountry>
    <airportName>...</airportName>
    <region>
      <name>...</name>
      <code>...</code>
      <country/>
      <position>...</position>
    </region>
    <timeZone>
      <name>...</name>
      <offset>...</offset>
      <daylightSavingsOffset>...</daylightSavingsOffset>
    </timeZone>
    <retentionOnly>...</retentionOnly>
    <position>...</position>
    <unique>...</unique>
    <alias>...</alias>
    <id>...</id>
    <version>...</version>
  </city>
  <day>...</day>
  <maxTemp>...</maxTemp>
  <minTemp>...</minTemp>
  <conditions>...</conditions>
  <icon>...</icon>
  <id>...</id>
  <version>...</version>
  <violations/>
</weatherForecast>