Author: mdryakhlenkov
Date: 2007-06-26 06:09:05 -0400 (Tue, 26 Jun 2007)
New Revision: 2182
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.classpath
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.project
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.settings/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.settings/org.hibernate.eclipse.console.prefs
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/lib/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/lib/hibernate3.jar
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/hibernate.cfg.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterface.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterfaceImpl.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/abstractembeddedcomponents.cid.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/MappedClass.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/mapping.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/MappedClassV2.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/mapping.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypes.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypesClass.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionListMap.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapItem.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.java
Log:
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.classpath
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.classpath
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.classpath 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="lib/msbase.jar"/>
+ <classpathentry kind="lib" path="lib/mssqlserver.jar"/>
+ <classpathentry kind="lib" path="lib/msutil.jar"/>
+ <classpathentry kind="lib" path="lib/hibernate3.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.project
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.project
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.project 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Mapping Tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.hibernate.eclipse.console.hibernateBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.hibernate.eclipse.console.hibernateNature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.settings/org.hibernate.eclipse.console.prefs
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.settings/org.hibernate.eclipse.console.prefs
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/.settings/org.hibernate.eclipse.console.prefs 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,4 @@
+#Tue Jun 19 14:58:29 MSD 2007
+default.configuration=Mapping Tests
+eclipse.preferences.version=1
+hibernate3.enabled=true
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/lib/hibernate3.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/lib/hibernate3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/hibernate.cfg.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/hibernate.cfg.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/hibernate.cfg.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+ <property
name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
+ </session-factory>
+</hibernate-configuration>
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterface.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterface.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterface.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,15 @@
+package mapping.abstractembeddedcomponents.cid;
+
+import java.io.Serializable;
+
+/**
+ * @author Steve Ebersole
+ */
+public interface MyInterface extends Serializable {
+ public String getKey1();
+ public void setKey1(String key1);
+ public String getKey2();
+ public void setKey2(String key2);
+ public String getName();
+ public void setName(String name);
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterfaceImpl.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterfaceImpl.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/MyInterfaceImpl.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,36 @@
+package mapping.abstractembeddedcomponents.cid;
+
+import mapping.abstractembeddedcomponents.cid.MyInterface;
+
+/**
+ * @author Steve Ebersole
+ */
+public class MyInterfaceImpl implements MyInterface {
+ private String key1;
+ private String key2;
+ private String name;
+
+ public String getKey1() {
+ return key1;
+ }
+
+ public void setKey1(String key1) {
+ this.key1 = key1;
+ }
+
+ public String getKey2() {
+ return key2;
+ }
+
+ public void setKey2(String key2) {
+ this.key2 = key2;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/abstractembeddedcomponents.cid.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/abstractembeddedcomponents.cid.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/abstractembeddedcomponents/cid/abstractembeddedcomponents.cid.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping package="mapping.abstractembeddedcomponents.cid">
+
+ <class name="MyInterface" table="MY_INTF"
proxy="MyInterface">
+ <composite-id>
+ <key-property name="key1" type="string"/>
+ <key-property name="key2" type="string"/>
+ </composite-id>
+ <discriminator column="TYPE" type="string"
length="10"/>
+ <property name="name" type="string"/>
+ </class>
+
+ <subclass name="MyInterfaceImpl" extends="MyInterface"
discriminator-value="1" proxy="MyInterface">
+ </subclass>
+
+</hibernate-mapping>
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.declaration.id">
+ <class name="MappedClassWithId" table="MappedClassTable">
+ <id name="id" column="ID" type="integer"/>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithId.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,13 @@
+package mapping.declaration.id;
+
+public class MappedClassWithId {
+ private int id;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.declaration.id">
+ <class name="MappedClassWithoutId" table="MappedClassTable">
+ <id column="ID" type="integer"/>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/MappedClassWithoutId.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,4 @@
+package mapping.declaration.id;
+
+public class MappedClassWithoutId {
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.declaration.id.composite.v1">
+ <class name="KeyManyToOneClass"
table="CompositeIdMappedClassTable">
+ <id name="keyId" column="KeyID" type="integer"/>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/KeyManyToOneClass.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,18 @@
+package mapping.declaration.id.composite.v1;
+
+public class KeyManyToOneClass {
+ private int keyId;
+ private String name;
+ public int getKeyId() {
+ return keyId;
+ }
+ public void setKeyId(int keyId) {
+ this.keyId = keyId;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/MappedClass.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/MappedClass.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/MappedClass.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,21 @@
+package mapping.declaration.id.composite.v1;
+
+import java.io.Serializable;
+
+public class MappedClass implements Serializable {
+ private int id;
+ private KeyManyToOneClass key;
+
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public KeyManyToOneClass getKey() {
+ return key;
+ }
+ public void setKey(KeyManyToOneClass key) {
+ this.key = key;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/mapping.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/mapping.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v1/mapping.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.declaration.id.composite.v1">
+ <class name="MappedClass"
table="CompositeIdMappedClassTable">
+ <composite-id>
+ <key-property name="id" type="int" column="ID"/>
+ <key-many-to-one name="key" class="KeyManyToOneClass"
column="KeyID"/>
+ </composite-id>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/MappedClassV2.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/MappedClassV2.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/MappedClassV2.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,21 @@
+package mapping.declaration.id.composite.v2;
+
+import java.io.Serializable;
+
+public class MappedClassV2 implements Serializable {
+ private int id1;
+ private int id2;
+
+ public int getId1() {
+ return id1;
+ }
+ public void setId1(int id1) {
+ this.id1 = id1;
+ }
+ public int getId2() {
+ return id2;
+ }
+ public void setId2(int id2) {
+ this.id2 = id2;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/mapping.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/mapping.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/declaration/id/composite/v2/mapping.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.declaration.id.composite.v2">
+ <class name="MappedClassV2" table="MappedClassTableV2">
+ <composite-id>
+ <key-property name="id1" type="int"
column="ID1"/>
+ <key-property name="id2" type="int"
column="ID2"/>
+ </composite-id>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypes.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypes.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypes.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.basic"
schema="dbo">
+ <class name="BasicValueTypesClass"
table="BasicValueTypesTable">
+ <id column="BasicValueTypesTable_ID"
type="integer"></id>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypesClass.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypesClass.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/basic/BasicValueTypesClass.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,57 @@
+package mapping.value.type.basic;
+
+public class BasicValueTypesClass {
+
+ private int property_int;
+ private long property_long;
+ private short property_short;
+ private float property_float;
+ private double property_double;
+ private byte property_byte;
+ private boolean property_boolean;
+
+ public boolean isProperty_boolean() {
+ return property_boolean;
+ }
+ public void setProperty_boolean(boolean property_boolean) {
+ this.property_boolean = property_boolean;
+ }
+ public byte getProperty_byte() {
+ return property_byte;
+ }
+ public void setProperty_byte(byte property_byte) {
+ this.property_byte = property_byte;
+ }
+ public double getProperty_double() {
+ return property_double;
+ }
+ public void setProperty_double(double property_double) {
+ this.property_double = property_double;
+ }
+ public float getProperty_float() {
+ return property_float;
+ }
+ public void setProperty_float(float property_float) {
+ this.property_float = property_float;
+ }
+ public int getProperty_int() {
+ return property_int;
+ }
+ public void setProperty_int(int property_int) {
+ this.property_int = property_int;
+ }
+ public long getProperty_long() {
+ return property_long;
+ }
+ public void setProperty_long(long property_long) {
+ this.property_long = property_long;
+ }
+ public short getProperty_short() {
+ return property_short;
+ }
+ public void setProperty_short(short property_short) {
+ this.property_short = property_short;
+ }
+
+
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.list">
+ <class name="CollectionList" table="COLLECTION_LISTS">
+ <id name="id" column="ID"/>
+ <list name="items">
+ <key column="COLLECTION_LIST_ID"/>
+ <list-index column="COLLECTION_LIST_ITEM_INDEX"/>
+ <one-to-many class="CollectionListItem"/>
+ </list>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionList.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,25 @@
+package mapping.value.type.collection.list;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+public class CollectionList {
+
+ private int id;
+ private List items = new ArrayList();
+
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public List getItems() {
+ return items;
+ }
+ public void setItems(List items) {
+ this.items = items;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.list">
+ <class name="CollectionListItem" table="COLLECTION_LIST_ITEMS"
schema="dbo">
+ <id name="id" column="ID" type="integer"/>
+ <property name="collectionListId" column="COLLECTION_LIST_ID"
type="integer"/>
+ <property name="itemIndex" column="COLLECTION_LIST_ITEM_INDEX"
type="integer"/>
+ <property name="item" column="COLLECTION_LIST_ITEM"
type="character"/>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/list/CollectionListItem.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,34 @@
+package mapping.value.type.collection.list;
+
+public class CollectionListItem {
+
+ private int id;
+ private int collectionListId;
+ private int itemIndex;
+ private String item;
+
+ public int getCollectionListId() {
+ return collectionListId;
+ }
+ public void setCollectionListId(int collectionListId) {
+ this.collectionListId = collectionListId;
+ }
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public String getItem() {
+ return item;
+ }
+ public void setItem(String item) {
+ this.item = item;
+ }
+ public int getItemIndex() {
+ return itemIndex;
+ }
+ public void setItemIndex(int itemIndex) {
+ this.itemIndex = itemIndex;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionListMap.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionListMap.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionListMap.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.map">
+ <class name="CollectionMapItem"
table="COLLECTION_MAP_ITEMS_OF_CLASS" schema="dbo">
+ <id name="id" column="ID" type="integer"/>
+ <property name="collectionMapId" column="COLLECTION_MAP_ID"
type="integer"/>
+ <property name="itemKey" column="COLLECTION_MAP_ITEM_KEY"
type="integer"/>
+ <property name="item" column="COLLECTION_MAP_ITEM"
type="character"/>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.map">
+ <class name="CollectionMap" table="COLLECTION_MAPS">
+ <id name="id" column="ID"/>
+ <map name="items" table="COLLECTION_MAP_ITEMS">
+ <key column="COLLECTION_MAP_ID"/>
+ <map-key column="COLLECTION_MAP_ITEM_KEY" type="integer"/>
+ <element column="COLLECTION_MAP_ITEM"
type="character"></element>
+ </map>
+ <map name="itemsOfClass"
table="COLLECTION_MAP_ITEMS_OF_CLASS">
+ <key column="COLLECTION_MAP_ID"/>
+ <map-key column="COLLECTION_MAP_ITEM_KEY" type="integer"/>
+ <one-to-many class="CollectionMapItem"/>
+ </map>
+ <map name="itemsMany" table="COLLECTION_MAP_ITEMS_MANY">
+ <key column="COLLECTION_MAP_ID1"/>
+ <map-key-many-to-many class="CollectionMapMany" >
+ <column name="COLLECTION_MAP_ID"/>
+ <column name="COLLECTION_MAP_ITEM_ID"/>
+ </map-key-many-to-many>
+ <many-to-many class="CollectionMapItem" column="xxxx"/>
+ </map>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMap.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,38 @@
+package mapping.value.type.collection.map;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+public class CollectionMap {
+
+ private int id;
+ private Map items = new HashMap();
+ private Map itemsOfClass = new HashMap();
+ private Collection itemsMany;
+
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public Map getItems() {
+ return items;
+ }
+ public void setItems(Map items) {
+ this.items = items;
+ }
+ public Map getItemsOfClass() {
+ return itemsOfClass;
+ }
+ public void setItemsOfClass(Map itemsOfClass) {
+ this.itemsOfClass = itemsOfClass;
+ }
+ public Collection getItemsMany() {
+ return itemsMany;
+ }
+ public void setItemsMany(Collection itemsMany) {
+ this.itemsMany = itemsMany;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapItem.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapItem.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapItem.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,34 @@
+package mapping.value.type.collection.map;
+
+public class CollectionMapItem {
+
+ private int id;
+ private int collectionMapId;
+ private int itemKey;
+ private String item;
+
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public String getItem() {
+ return item;
+ }
+ public void setItem(String item) {
+ this.item = item;
+ }
+ public int getCollectionMapId() {
+ return collectionMapId;
+ }
+ public void setCollectionMapId(int collectionMapId) {
+ this.collectionMapId = collectionMapId;
+ }
+ public int getItemKey() {
+ return itemKey;
+ }
+ public void setItemKey(int itemKey) {
+ this.itemKey = itemKey;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.map">
+ <class name="CollectionMapMany" table="COLLECTION_MAP_MANY">
+ <composite-id>
+ <key-property name="collectionMapId"
column="COLLECTION_MAP_ID"/>
+ <key-property name="collectionMapItemId"
column="COLLECTION_MAP_ITEM_ID"/>
+ </composite-id>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/map/CollectionMapMany.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,21 @@
+package mapping.value.type.collection.map;
+
+import java.io.Serializable;
+
+public class CollectionMapMany implements Serializable {
+ private int collectionMapId;
+ private int collectionMapItemId;
+
+ public int getCollectionMapId() {
+ return collectionMapId;
+ }
+ public void setCollectionMapId(int collectionMapId) {
+ this.collectionMapId = collectionMapId;
+ }
+ public int getCollectionMapItemId() {
+ return collectionMapItemId;
+ }
+ public void setCollectionMapItemId(int collectionMapItemId) {
+ this.collectionMapItemId = collectionMapItemId;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.set">
+ <class name="CollectionSet" table="COLLECTION_SETS">
+ <id name="id" column="ID"/>
+ <set name="items">
+ <key column="COLLECTION_SET_ID"/>
+ <one-to-many class="CollectionSetItem"/>
+ </set>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSet.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,23 @@
+package mapping.value.type.collection.set;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class CollectionSet {
+
+ private int id;
+ private Set items = new HashSet(0);
+
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public Set getItems() {
+ return items;
+ }
+ public void setItems(Set items) {
+ this.items = items;
+ }
+}
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.hbm.xml
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.hbm.xml
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.hbm.xml 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping package="mapping.value.type.collection.set">
+ <class name="CollectionSetItem" table="COLLECTION_SET_ITEMS"
schema="dbo">
+ <id name="id" column="ID" type="integer"/>
+ <property name="collectionSetId" column="COLLECTION_SET_ID"
type="integer"/>
+ <property name="item" column="COLLECTION_SET_ITEM"
type="character"/>
+ </class>
+</hibernate-mapping>
\ No newline at end of file
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.java
===================================================================
---
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.java
(rev 0)
+++
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/value/type/collection/set/CollectionSetItem.java 2007-06-26
10:09:05 UTC (rev 2182)
@@ -0,0 +1,27 @@
+package mapping.value.type.collection.set;
+
+public class CollectionSetItem {
+
+ private int id;
+ private int collectionSetId;
+ private String item;
+
+ public int getCollectionSetId() {
+ return collectionSetId;
+ }
+ public void setCollectionSetId(int collectionSetId) {
+ this.collectionSetId = collectionSetId;
+ }
+ public int getId() {
+ return id;
+ }
+ public void setId(int id) {
+ this.id = id;
+ }
+ public String getItem() {
+ return item;
+ }
+ public void setItem(String item) {
+ this.item = item;
+ }
+}