2.The Bean Provider must create a primary key class for an entity bean with container-managed persistence.True or False.
False, it can map ho a single field:
Spec, 10.8:
There are two ways to specify a primary key class for an entity bean with container-managed persistence:
� Primary key that maps to a single field in the entity bean class.
� Primary key that maps to multiple fields in the entity bean class.
The second method is necessary for implementing compound keys, and the first method is convenient for
single-field keys. Without the first method, simple types such as
String would have to be wrapped in a
user-defined class.