Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is persistence.xml required  RSS feed

 
rakesh sugirtharaj
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I m new to EJB so this may sound naive. I see that the only required tag in persistence.xml is persistence unit with name and all others are optional. My question is, in such a case is persistence.xml file required? Should every project using JPA must have a persistence.xml?
 
Devaka Cooray
Marshal
Posts: 5390
610
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
persistence.xml is required for setting a persistence unit on JPA.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!