This week's giveaway is in the Spring forum.
We're giving away four 3 month subscriptions to Marco Behler Videos and have Marco Behler on-line!
See this thread for details.
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is hibernate.cfg.xml still needed when I am also using JPA annotation ?  RSS feed

tangara goh
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

After failing to use JPA alone to insert my data, I have now added on one more layer aka Hibernate.

However, I do not know if hibernate.cfg.xml is still needed cos most of the information about my connection is in persistence.xml.

Hope someone can tell me the right way of doing things.

Many thanks.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!