summaryrefslogtreecommitdiffstats
path: root/src/META-INF/persistence.xml
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-22 15:07:27 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-23 15:57:23 +0100
commitdf8c8d8eaa3fd74b2f6a76341611555ee6d8834d (patch)
tree40e93e3b3674f32d4870486eb9f5870d9fe45b2b /src/META-INF/persistence.xml
downloadJCatalog-df8c8d8eaa3fd74b2f6a76341611555ee6d8834d.tar.gz
JCatalog-df8c8d8eaa3fd74b2f6a76341611555ee6d8834d.zip
Add initial files
Diffstat (limited to 'src/META-INF/persistence.xml')
-rw-r--r--src/META-INF/persistence.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/META-INF/persistence.xml b/src/META-INF/persistence.xml
new file mode 100644
index 0000000..039a45e
--- /dev/null
+++ b/src/META-INF/persistence.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
+<persistence-unit name="catalog">
+<class>jpa.User</class>
+<class>jpa.Category</class>
+<class>jpa.Product</class>
+<properties>
+ <property name="toplink.logging.level" value="INFO"/>
+ <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
+ <property name="toplink.jdbc.url" value="jdbc:mysql://localhost/catalog"/>
+ <property name="toplink.jdbc.user" value="root"/>
+ <property name="toplink.jdbc.password" value="masterkey"/>
+</properties>
+</persistence-unit>
+</persistence>