my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Instances of composite key classes (@IdClass annotation) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Instances of composite key classes (@IdClass annotation)" Watch "Instances of composite key classes (@IdClass annotation)" New topic
Author

Instances of composite key classes (@IdClass annotation)

Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
We can use the following method to specify a composite primary key class for an Entity class:




When an instance of CompositePK class will be created?
When it will be destroyed?
Instances of CompositePK may be pooled?

Please feel kind to answer above three questions.
 
 
subject: Instances of composite key classes (@IdClass annotation)
 
Similar Threads
@IdClass EJB 3 in Action
Composite key classes
composite key by @IdClass
PK in aggregated entity with other non-key attributes?
JPA composite keys problem