Now using JPA with a container managed entity manager.
[utils] / mythtv / monitor / src / main / resources / META-INF / persistence.xml
diff --git a/mythtv/monitor/src/main/resources/META-INF/persistence.xml b/mythtv/monitor/src/main/resources/META-INF/persistence.xml
new file mode 100644 (file)
index 0000000..fc87ef0
--- /dev/null
@@ -0,0 +1,17 @@
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+   <persistence-unit name="mythtv">
+      <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <jta-data-source>jdbc/mythtv</jta-data-source>
+      <class>org.wamblee.mythtv.Channel</class>
+      <class>org.wamblee.mythtv.Recording</class>
+      <exclude-unlisted-classes>true</exclude-unlisted-classes>
+      <!-- properties>
+         <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
+         <property name="hibernate.show_sql" value="false"/>
+         <property name="hibernate.cache.provider" value="org.hibernate.cache.EhCacheProvider"/>
+      </properties -->
+   </persistence-unit>
+</persistence>
\ No newline at end of file