<object name="tag">
  <layout>
    <xml name="tag" nodeType="xs:element"/>
    <sql table="tag"/>
  </layout>

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

  <property name="time" type="long" foreignKey="true" object="action">
    <xml nodeType="xs:attribute" type="xs:int"/>
    <sql type="int"/>
  </property>
  
  <property ref="true" object="vistrail" type="long" mapping="many-to-one" 
	    inverse="true">
  </property>

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

</object>
