• 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
Marshal
Posts: 5216
512
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!