topical media & game development

talk show tell print

professional-portal-04-ojbmsg-WEB-INF-classes-repository-user.xml / xml



     <class-descriptor
               class="com.ojbmsg.test.Message"
               table="tblMESSAGE"
     >
        <field-descriptor id="1"
           name="m_nID"
           column="ID"
           jdbc-type="INTEGER"
           primarykey="true"
           autoincrement="true"
        />
        <field-descriptor id="2"
           name="m_sSubmitter"
           column="SUBMITTER"
           jdbc-type="VARCHAR"
        />
        <field-descriptor id="3"
           name="m_sSubject"
           column="SUBJECT"
           jdbc-type="VARCHAR"
        />
        <field-descriptor id="4"
            name="m_sMessage"
            column="MYMESSAGE"
            jdbc-type="VARCHAR"
        />
        <field-descriptor id="5"
            name="m_sDate"
            column="MYDATE"
            jdbc-type="VARCHAR"
        />
        
        <collection-descriptor
           name="m_vViewers"
           element-class-ref="com.ojbmsg.test.Viewer"
           orderby="ID"
           sort="DESC"
           auto-retrieve="true"
           auto-update="true"
           auto-delete="true"
  
        >
            <inverse-foreignkey field-id-ref="1"/>
        </collection-descriptor>
  
     </class-descriptor>
  
     <class-descriptor
               class="com.ojbmsg.test.Viewer"
               table="tblVIEWER"
     >
        <field-descriptor id="1"
           name="m_nID"
           column="ID"
           jdbc-type="INTEGER"
           primarykey="true"
           autoincrement="true"
        />
        <field-descriptor id="2"
           name="m_sIP"
           column="IP"
           jdbc-type="VARCHAR"
        />
        <field-descriptor id="3"
            name="m_sDate"
            column="VIEWDATE"
            jdbc-type="VARCHAR"
        />
  
     </class-descriptor>
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.