Guest User

Untitled

a guest
Mar 14th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0"
  2. xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"
  3. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence *
  4. http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  5. <persistence-unit name="products-unit" transaction-type="RESOURCE_LOCAL">
  6. Attenzione: i valori di queste proprietà devono essere quelli del vostro dbms
  7. />
  8. <class>it.uniroma3.db.products.Product</class> <properties>
  9. <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <property name="javax.persistence.jdbc.user" value="postgres" />
  10. <property name="javax.persistence.jdbc.password" value="postgres" />
  11. <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/products"
  12. <!-- Hibernate properties -->
  13. <property name="hibernate.show_sql" value="true" />
  14. <property name="hibernate.format_sql" value="true" />
  15. <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> <property name="hibernate.hbm2ddl.auto" value="create" />
  16. </properties>
Add Comment
Please, Sign In to add comment