diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.sample.LibraryColLengthAction/mysql_s_o/hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.sample.LibraryColLengthAction/mysql_s_o/hibernate.hbm.xml | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.sample.LibraryColLengthAction/mysql_s_o/hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.sample.LibraryColLengthAction/mysql_s_o/hibernate.hbm.xml index 361b95035..64edf241b 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.sample.LibraryColLengthAction/mysql_s_o/hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.sample.LibraryColLengthAction/mysql_s_o/hibernate.hbm.xml @@ -1,8 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> -<!-- Generated by Teneo on Sun Nov 12 01:09:58 CET 2006 --> +<!-- Generated by Teneo on Mon Nov 13 15:28:10 CET 2006 --> <hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> <class entity-name="Book" abstract="false" lazy="false" table="`book`"> <meta attribute="eclassName">Book</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> @@ -13,9 +17,14 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <property name="title" type="java.lang.String" lazy="false" column="`title`" not-null="true"/> - <property name="pages" type="int" lazy="false" column="`pages`" not-null="false"/> - <property name="category" lazy="false" not-null="false" column="`categ`"> + <property name="title" type="java.lang.String" lazy="false" not-null="true"> + <column not-null="false" unique="false" name="`titl"/> + </property> + <property name="pages" type="int" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`page"/> + </property> + <property name="category" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`cate"/> <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> </type> @@ -34,7 +43,9 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/> + <property name="name" type="java.lang.String" lazy="false" not-null="true"> + <column not-null="false" unique="false" name="`name"/> + </property> <list name="writers" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`li_id`" not-null="false" unique="false"/> @@ -60,7 +71,9 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/> + <property name="name" type="java.lang.String" lazy="false" not-null="true"> + <column not-null="false" unique="false" name="`name"/> + </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <key update="true"> <column name="`bo_id`" not-null="false" unique="false"/> |