• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are Hibernate and JPA settings interoperable in persistence.xml?  RSS feed

Mike Cheung
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, just downloaded the latest Hibernate and notice the following content in the Hibernate JPA Tutorial's persistance.xml file.

This is in contrast to the default one added by my IDE when I did the following on my Netbeans:
1) Right click on the Project -> New -> Other
2) Select Persistence for Categories, then Persistence Unit for File Types

Notice how they are almost the same? With the exception that the first one is using "hibernate.hbm2ddl.auto" and the second one is using "javax.persistence.schema-generation.database.action"? Are the two interchangeable? In other words, am I able to use "javax.persistence.schema-generation.database.action" instead of "hibernate.hbm2ddl.auto" for a Hibernate + JPA project?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!