restoring head
[mir.git] / source / org / codecoop / mir / core / model / Right.hbm.xml
diff --git a/source/org/codecoop/mir/core/model/Right.hbm.xml b/source/org/codecoop/mir/core/model/Right.hbm.xml
new file mode 100755 (executable)
index 0000000..9d26ff9
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>\r
+<!DOCTYPE hibernate-mapping PUBLIC\r    "-//Hibernate/Hibernate Mapping DTD 2.0//EN"\r    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >\r
+<hibernate-mapping>
+       <class \r                name="org.codecoop.mir.core.model.Right" \r              table="rights">
+               <id
+                       column="id"
+                       name="id"
+                       type="java.lang.Integer"
+               >
+                       <generator class="native">\r                             <param name="sequence">right_id_seq</param>\r                    </generator>
+               </id>
+               <property
+                       column="name"
+                       length="80"
+                       name="name"
+                       not-null="true"
+                       type="java.lang.String"
+                />
+               <property
+                       column="description"
+                       length="255"
+                       name="description"
+                       type="java.lang.String"
+                />
+               <!-- Associations -->
+       </class>
+</hibernate-mapping>