Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2java/test
In directory sc8-pr-cvs1:/tmp/cvs-serv15836/src/net/sf/hibernate/tool/hbm2java/test
Modified Files:
Test.hbm.xml
Log Message:
Added support for <any> to hbm2java
changed description meta-tag to class-description and field-description to avoid having inherited class-descriptions in properties.
Index: Test.hbm.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2java/test/Test.hbm.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Test.hbm.xml 24 Jan 2003 13:30:20 -0000 1.3
--- Test.hbm.xml 12 Apr 2003 14:47:36 -0000 1.4
***************
*** 8,12 ****
<class name="codegen.test.BasicPrincipal"
table="tblPrincipal">
! <meta attribute="description">
BasicPrinicpal is just a basic principal. And it got some javadoc too!
@see Guest
--- 8,13 ----
<class name="codegen.test.BasicPrincipal"
table="tblPrincipal">
! <meta attribute="beans-property-type">bound</meta>
! <meta attribute="class-description">
BasicPrinicpal is just a basic principal. And it got some javadoc too!
@see Guest
***************
*** 20,27 ****
<property name="name"
type="java.lang.String">
! <meta attribute="description">An ordinary field with some more javadoc :)</meta>
</property>
<property name="count"
! type="int"/>
<property name="initial"
type="character"/>
--- 21,31 ----
<property name="name"
type="java.lang.String">
! <meta attribute="field-description">An ordinary field with some more javadoc :)</meta>
! <meta attribute="finder">findByName</meta>
</property>
<property name="count"
! type="int">
! <meta attribute="finder">findByCount</meta>
! </property>
<property name="initial"
type="character"/>
***************
*** 98,102 ****
<meta attribute="implements">codegen.test.IAuditable</meta>
<meta attribute="generated-class">codegen.test.AutoPerson</meta>
! <meta attribute="description">
AutoPerson is a simple class, which illustrates the possibilities of the Hibernate meta tag.
@author Zim Zala Bim
--- 102,106 ----
<meta attribute="implements">codegen.test.IAuditable</meta>
<meta attribute="generated-class">codegen.test.AutoPerson</meta>
! <meta attribute="class-description">
AutoPerson is a simple class, which illustrates the possibilities of the Hibernate meta tag.
@author Zim Zala Bim
***************
*** 108,115 ****
<meta attribute="scope-get">public</meta>
<meta attribute="scope">protected</meta>
! <meta attribute="description">A javadoc comment for the field name...</meta>
</property>
<property name="aDate" type="date">
</property>
</class>
--- 112,124 ----
<meta attribute="scope-get">public</meta>
<meta attribute="scope">protected</meta>
! <meta attribute="field-description">A javadoc comment for the field name...</meta>
</property>
<property name="aDate" type="date">
</property>
+
+ <any name="something" id-type="long" cascade="all">
+ <column name="clazz" length="100"/>
+ <column name="gen_id"/>
+ </any>
</class>
|