[jboss-user] [JBoss Seam] - Re: Collection Loading

fredzep do-not-reply at jboss.com
Fri May 25 11:27:50 EDT 2007


Sorry,

  |     <class
  |         name="entidades.bdufop.Sistema"
  |         table="sistema"
  |         schema="public"
  |     >
  |         
  |         <id
  |             name="codigo"
  |             column="codigo"
  |             type="java.lang.String"
  |         >
  |             <generator class="assigned">
  |             </generator>
  |             
  |         </id>
  |         
  |         <property
  |             name="descricao"
  |             type="java.lang.String"
  |             update="true"
  |             insert="true"
  |             column="descricao"
  |             not-null="true"
  |         />
  |         
  |         <property
  |             name="disponivel"
  |             type="java.lang.String"
  |             update="true"
  |             insert="true"
  |             column="disponivel"
  |             not-null="true"
  |         />
  |         
  |         <property
  |             name="mensagem"
  |             type="java.lang.String"
  |             update="true"
  |             insert="true"
  |             column="mensagem"
  |         />  
  | 
  |                 
  |         <set name="aplicacoes" lazy="true" cascade="all">
  |             <key column="cod_sistema"/>       
  |             <one-to-many class="entidades.bdufop.Aplicacao"/>
  |         </set>
  |         
  |     </class>
  | 
  | 
  |     <class
  |         name="entidades.bdufop.Aplicacao"
  |         table="aplicacao"
  |         schema="public"
  |     >
  | 
  |         <composite-id
  |             name="id"
  |             class="entidades.bdufop.Aplicacao_pk"
  |         >
  |             
  |             <key-property
  |                 name="codigo_sistema"
  |                 type="java.lang.String"
  |                 column="cod_sistema"
  |             />
  |                         
  |             <key-property
  |                 name="codigo_aplicacao"
  |                 type="java.lang.String"
  |                 column="codigo"
  |             />
  |             
  |         </composite-id>
  |         
  |         <many-to-one name="sistema" 
  |                      class="entidades.bdufop.Sistema"
  |                      column="cod_sistema"
  |                      insert="false" 
  |                      update="false"
  |                      unique="true"
  |                      not-null="true"/>
  |         
  |         <property
  |             name="descricao"
  |             type="java.lang.String"
  |             column="descricao"
  |             not-null="true"
  |         />
  |         
  |         <property
  |             name="versao"
  |             type="java.lang.String"
  |             column="versao"
  |         />        
  |         
  |         <property
  |             name="dt_versao"
  |             type="java.util.Date"
  |             column="dt_versao"
  |         />        
  |         
  |         
  |         <property
  |             name="disponivel"
  |             type="java.lang.String"
  |             column="disponivel"
  |             not-null="true"
  |         />                    
  | 
  |         <property
  |             name="url"
  |             type="java.lang.String"
  |             column="url"
  |         />
  |                                         
  |         <property
  |             name="mensagem"
  |             type="java.lang.String"
  |             column="mensagem"
  |         />
  |         
  |     </class>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048714#4048714

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048714



More information about the jboss-user mailing list