Guest User

Untitled

a guest
Oct 31st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"
  5. version="2.2">
  6.  
  7. <persistence-unit name="jpa-example">
  8. <jta-data-source>java:/PostgresDS</jta-data-source>
  9. <class>id.ferdi.training.entity.Employee</class>
  10. <properties>
  11. <!-- Configuring JDBC properties -->
  12. <!-- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/training" />
  13. <property name="javax.persistence.jdbc.user" value="training" />
  14. <property name="javax.persistence.jdbc.password" value="training" />
  15. <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />-->
  16. <property name="javax.persistence.jdbc.dialect" value="org.hibernate.dialect.PostgreSQL95Dialect" />
  17. <property name="javax.persistence.schema-generation.database.action" value="update" />
  18. </properties>
  19. </persistence-unit>
  20. </persistence>
Add Comment
Please, Sign In to add comment