1A.... 2A.According to spec it says that Bean provider must create a primary key class. With CMT is it not possible that Container creates a PKclass when we define the Primary key field,just as it implements Home and Component classes for us.
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:
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.
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.