• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is persistence.xml required

 
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
ExamLab Creator
Marshal
Pie
Posts: 4320
236
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