Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistence Unit ...

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can somebody please explain what a Persistence Unit actually is ?

Thanks ...
 
Adam Tkaczyk
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSR 220 explains this very clearly.

A persistence unit is a logical grouping that includes:
� An entity manager factory and its entity managers, together with their configuration information.
� The set of managed classes included in the persistence unit and managed by the entity managers
of the entity manager factory.
� Mapping metadata (in the form of metadata annotations and/or XML metadata) that specifies the mapping of the classes to the database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic