Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <persistence version="2.0"
- 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_2_0.xsd">
- <persistence-unit name="products-unit" transaction-type="RESOURCE_LOCAL">
- <class>it.uniroma3.db.products.Product</class>
- <properties>
- <property name="openjpa.ConnectionDriverName" value="org.postgresql.Driver" />
- <property name="openjpa.ConnectionUserName" value="postgres" />
- <property name="openjpa.ConnectionPassword" value="postgres" />
- <property name="openjpa.ConnectionURL" value="jdbc:postgresql://localhost:5432/products" />
- <property name="openjpa.jdbc.DBDictionary" value="postgres" />
- <property name="openjpa.jdbc.SynchronizeMappings"
- value="buildSchema(SchemaAction=add,ForeignKeys=true)" />
- <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO" />
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement