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">
- Attenzione: i valori di queste proprietà devono essere quelli del vostro dbms
- />
- <class>it.uniroma3.db.products.Product</class> <properties>
- <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <property name="javax.persistence.jdbc.user" value="postgres" />
- <property name="javax.persistence.jdbc.password" value="postgres" />
- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/products"
- <!-- Hibernate properties -->
- <property name="hibernate.show_sql" value="true" />
- <property name="hibernate.format_sql" value="true" />
- <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> <property name="hibernate.hbm2ddl.auto" value="create" />
- </properties>
Add Comment
Please, Sign In to add comment