Advertisement
Guest User

Untitled

a guest
May 30th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="2.0"
  3. xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  5. <persistence-unit name="products-unit" transaction-type="RESOURCE_LOCAL">
  6. <class>it.uniroma3.db.products.Product</class>
  7. <properties>
  8. <property name="openjpa.ConnectionDriverName" value="org.postgresql.Driver" />
  9. <property name="openjpa.ConnectionUserName" value="postgres" />
  10. <property name="openjpa.ConnectionPassword" value="postgres" />
  11. <property name="openjpa.ConnectionURL" value="jdbc:postgresql://localhost:5432/products" />
  12. <property name="openjpa.jdbc.DBDictionary" value="postgres" />
  13. <property name="openjpa.jdbc.SynchronizeMappings"
  14. value="buildSchema(SchemaAction=add,ForeignKeys=true)" />
  15. <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO" />
  16. </properties>
  17. </persistence-unit>
  18. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement