[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Corrcet hibernate mapping in readable format (SRY)

stefan.lang@amigon.de do-not-reply at jboss.com
Thu Mar 15 12:49:11 EDT 2007


  | 
  | <hibernate-mapping
  | >
  |     <class
  |         name="com.jbossatwork.common.CarDTO"
  |         table="CAR"
  |     >
  | 
  |         <id
  |             name="id"
  |             column="ID"
  |             type="integer"
  |         >
  |             <generator class="sequence">
  |               <!--  
  |                   To add non XDoclet generator parameters, create a file named 
  |                   hibernate-generator-params-CarDTO.xml 
  |                   containing the additional parameters and place it in your merge dir. 
  |               --> 
  |             <param name="sequence">car_sequence</param>              
  |             </generator>
  |         </id>
  | 
  |         <property
  |             name="make"
  |             type="java.lang.String"
  |             column="MAKE"
  |         />
  | 
  |         <property
  |             name="model"
  |             type="java.lang.String"
  |             column="MODEL"
  |         />
  | 
  |         <property
  |             name="modelYear"
  |             type="java.lang.String"
  |             column="MODEL_YEAR"
  |         />
  | 
  |         <!--
  |             To add non XDoclet property mappings, create a file named
  |                 hibernate-properties-CarDTO.xml
  |             containing the additional properties and place it in your merge dir.
  |         -->
  | 
  |     </class>
  | 
  | </hibernate-mapping>
  | 

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

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



More information about the jboss-user mailing list