Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2java/test
In directory sc8-pr-cvs1:/tmp/cvs-serv8993a/net/sf/hibernate/tool/hbm2java/test
Added Files:
TestMeta.hbm.xml
Log Message:
applied Max Andersen's patch for <meta>attributes in hbm2java
--- NEW FILE: TestMeta.hbm.xml ---
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<class name="Person">
<meta attribute="description">
Javadoc for the class person
@author Frodo
</meta>
<meta attribute="implements">Comparable</meta>
<meta attribute="scope-class">abstract public</meta>
<id name="id" type="long">
<meta attribute="scope-set">protected</meta>
<generator class="vm.long"/>
</id>
<property name="name" type="string">
<meta attribute="description">The name of the person</meta>
</property>
</class>
<class name="Parent">
<id name="id" type="long">
<meta attribute="scope-set">protected</meta>
<generator class="vm.long"/>
</id>
<timestamp name="stamp" column="ts_"/>
<set name="children" inverse="true" lazy="true">
<meta attribute="description">My lovely children, for which I would like an add and remove method...</meta>
<key column="parent_key"/>
<one-to-many class="other.Child"/>
</set>
<set name="moreChildren" cascade="all" lazy="true">
<key column="more_parent_key">
<column name="another_key"/>
</key>
<one-to-many class="other.Child"/>
</set>
</class>
<class name="other.Child">
<meta attribute="generated-class">x.Child</meta>
<id name="id" type="long">
<meta attribute="scope-set">protected</meta>
<generator class="vm.long"/>
</id>
<version name="version"/>
<many-to-one name="parent" column="parent_key" class="Parent">
<meta attribute="description">My beloved parent.</meta>
</many-to-one>
</class>
</hibernate-mapping>
|