Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is meant by persistence unit?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please refer the following URL http://www.javaworld.com/javaworld/jw-10-2008/jw-10-ejb3.html?page=4. an excerpt from it is as follows

For persistence, you need a JPA deployment descriptor named persistence.xml.
Injecting the EntityManager without specifying the persistence unit works only if a single persistence unit is specified in persistence.xml,


i read the whole article, but i do not understand what is a PERSISTENCE UNIT?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A persistence unit is a grouping of JPA entities. This serves as a nice review of the terms.
 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Jeanne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic