please go at this web app created using the archetyoe for tomee7 and
hibernate 5.2.12.
I setted the properties for create the tables from entity at deployment
time ,but it not working.
the table into hsqldb not are created.
please the datasource is named ds .
The jpa provider is hibernate 5.2.12 added with tomee maven plugin and
removed openjpa .
i setted into persistence.xml the properties:
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect"/>
<!-- 'update' is a nonstandard action, but Hibernate
supports it -->
<!-- <property
name="javax.persistence.schema-generation.database.action"
value="update"/> -->
<!-- <property name="hibernate.hbm2ddl.auto"
value="create-drop"/> -->
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property
name="javax.persistence.schema-generation.database.action"
value="drop-and-create"/>
</properties>
my project is at my github
https://github.com/maurojava/prova2.git
--
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus