(no commit message)
[utils] / mythtv / war / src / main / resources / Recording.hbm.xml
diff --git a/mythtv/war/src/main/resources/Recording.hbm.xml b/mythtv/war/src/main/resources/Recording.hbm.xml
new file mode 100644 (file)
index 0000000..6e52a54
--- /dev/null
@@ -0,0 +1,22 @@
+<?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 default-access="field">
+        
+        <class name="org.wamblee.mythtv.Recording" table="recorded" lazy="false">
+          
+            <composite-id>
+                <key-many-to-one name="_channel" column="chanid" class="org.wamblee.mythtv.Channel"/>
+                <key-property name="_starttime" column="starttime"></key-property>
+            </composite-id>
+          
+            <property name="_basename" column="basename"/>
+            <property name="_progstart" column="progstart"/>
+            <property name="_title" column="title"/>
+            <property name="_subtitle" column="subtitle"/>
+            <property name="_filesize" column="filesize"/>
+        </class>
+        
+    </hibernate-mapping>
\ No newline at end of file