This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Primary Key Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Primary Key Class" Watch "Primary Key Class" New topic
Author

Primary Key Class

Benoît de Chateauvieux
Ranch Hand

Joined: Aug 10, 2007
Posts: 183
Does anyone know why a Primary Key Class
- must be public
- must have a public no-args constructor
when Entity Class can be protected and have protected no-args constructor ?

Thanks !

Beno�t


SCJP5 | SCBCD5 | SCEA5 Part 1
 
 
subject: Primary Key Class