Summary
I\'m trying to run a Java web application JPA 2.0 example. The example application was written to run in Glassfish
, using
The next line does not create foreign keys:
Only creates schema and deletes content of a database.
But if you want create foreign keys, use the following lines:
In another way, if you want to see the SQL output:
NOTE: In order to see the generated output in the TomEE console, you need to change the log level in the file loggin.properties
with openjpa.level = FINEST
See more in http://openjpa.apache.org/faq.html