diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.SchoolLibraryTest$1/mysql_s_o/hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.SchoolLibraryTest$1/mysql_s_o/hibernate.hbm.xml | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.SchoolLibraryTest$1/mysql_s_o/hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.SchoolLibraryTest$1/mysql_s_o/hibernate.hbm.xml index 135060791..0444c469a 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.SchoolLibraryTest$1/mysql_s_o/hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.SchoolLibraryTest$1/mysql_s_o/hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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:56 CET 2006 --> +<!-- Generated by Teneo on Mon Nov 13 15:28:07 CET 2006 --> <hibernate-mapping> <class entity-name="Book" abstract="false" lazy="false" table="`book`"> <meta attribute="eclassName">Book</meta> @@ -13,9 +13,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="false"/> - <property name="pages" type="int" lazy="false" column="`pages`" not-null="false"/> - <property name="category" lazy="false" not-null="false" column="`category`"> + <property name="title" type="java.lang.String" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`title`"/> + </property> + <property name="pages" type="int" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`category`"/> <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.BookCategory</param> </type> @@ -34,7 +39,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="false"/> + <property name="name" type="java.lang.String" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`name`"/> + </property> <list name="writers" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`library_writers_id`" not-null="false" unique="false"/> @@ -60,7 +67,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="false"/> + <property name="name" type="java.lang.String" lazy="false" not-null="false"> + <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="`book_author_id`" not-null="false" unique="false"/> @@ -79,7 +88,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="value" type="float" lazy="false" column="`value`" not-null="false"/> + <property name="value" type="float" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`value`"/> + </property> </class> <joined-subclass entity-name="SchoolBook" abstract="false" lazy="false" extends="Book" table="`schoolbook`"> <meta attribute="eclassName">SchoolBook</meta> @@ -87,7 +98,9 @@ <key> <column name="`book_id`"/> </key> - <property name="value" type="float" lazy="false" column="`value`" not-null="false"/> + <property name="value" type="float" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`value`"/> + </property> </joined-subclass> <joined-subclass entity-name="SchoolLibrary" abstract="false" lazy="false" extends="Library" table="`schoollibrary`"> <meta attribute="eclassName">SchoolLibrary</meta> @@ -95,6 +108,8 @@ <key> <column name="`library_id`"/> </key> - <property name="location" type="java.lang.String" lazy="false" column="`location`" not-null="false"/> + <property name="location" type="java.lang.String" lazy="false" not-null="false"> + <column not-null="false" unique="false" name="`location`"/> + </property> </joined-subclass> </hibernate-mapping>
\ No newline at end of file |