Skip to content

Instantly share code, notes, and snippets.

@borymskyi
Last active February 17, 2023 10:04
Show Gist options
  • Save borymskyi/25130d2d5c4064c2bd814940945a1759 to your computer and use it in GitHub Desktop.
Save borymskyi/25130d2d5c4064c2bd814940945a1759 to your computer and use it in GitHub Desktop.
property file for hibernate factory entity manager
<persistence
xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1">
<persistence-unit name="default">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5444/bobocode2" />
<property name="javax.persistence.jdbc.user" value="postgres"/>
<property name="javax.persistence.jdbc.password" value="admin"/>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL10Dialect" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.highlight.sql" value="true"/>
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment