Skip to content

Commit

Permalink
use hibernate schema update property
Browse files Browse the repository at this point in the history
(standard jpa "create" works, but gives weird "already exists" message)
  • Loading branch information
redmitry committed Dec 7, 2023
1 parent 26361f3 commit c39ea95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
<non-jta-data-source>java:jboss/datasources/BeaconNetwork</non-jta-data-source>
<class>es.bsc.inb.ga4gh.beacon.network.log.BeaconLogEntity</class>
<properties>
<!--
<property name="jakarta.persistence.schema-generation.database.action" value="create"/>

<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
<property name="hibernate.show_sql" value = "true" />

-->
<property name="hibernate.hbm2ddl.auto" value="update" />
</properties>
</persistence-unit>
</persistence>

0 comments on commit c39ea95

Please sign in to comment.