<object name="session">
  <layout>
    <xml name="session" type="xs:element"/>
    <sql table="session"/>
  </layout>

  <property name="id" type="long" primaryKey="true">
    <xml nodeType="xs:attribute" type="xs:int"/>
    <sql type="int"/>
  </property>
  
  <property name="user" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
    <sql type="varchar(255)"/>
  </property>

  <property name="ip" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
    <sql type="varchar(255)"/>
  </property>

  <property name="visVersion" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
    <sql column="vis_ver" type="varchar(255)"/>
  </property>

  <property name="tsStart" type="datetime">
    <xml nodeType="xs:attribute" type="xs:dateTime"/>
    <sql column="ts_start" type="datetime"/>
  </property>

  <property name="tsEnd" type="datetime">
    <xml nodeType="xs:attribute" type="xs:dateTime"/>
    <sql coumn="ts_end" type="datetime"/>
  </property>
  
  <property name="machineId" type="long" foreignKey="true" object="machine">
    <xml nodeType="xs:attribute" type="xs:int"/>
    <sql column="machine_id" type="int"/>
  </property>

  <property ref="true" object="wfExec" type="hash" mapping="one-to-many">
    <xml nodeType="xs:element"/>
  </property>
  
  <property ref="true" object="log" type="long" mapping="many-to-one" 
	    inverse="true">
    <sql column="log_id" type="int"/>
  </property>

  <property name="vistrailId" type="long" inverse="true"
	    foreignKey="true" object="vistrail">
    <sql column="vt_id" type="int"/>
  </property>

</object>
