• 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.
 
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!