Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Are Hibernate and JPA settings interoperable in persistence.xml?

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic