Forums Register Login

mock exam question

+Pie Number of slices to send: Send
With CMP, the primary key for an entity bean may be automatically generated by the container if the entity bean meets certain requirements. Which of the following is true.

A.
In the deployment descriptor, the primary key class must be defined as a java.lang.Object. The primary key field must not specified.

B.
In the home interface, the argument of the findByPrimaryKey method must be a java.lang.Object.

C.
In the entity bean class, the return type of the ejbCreate method must be a java.lang.Object.

D.
All of the above are requirements.

E.
None of the above are requirements.

I though the answer is E but its D, I think container can not automatically generate a primary key.

Please help...

soni.
+Pie Number of slices to send: Send
Please refer to section 10.8.3 of EJB 2.0 Spec.

Regards
Ram
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 558 times.
Similar Threads
WebSphere 5.x support EJB2.0 spec on autogen'd PKs?
Undefined Primary Key
CMP and primary key
Some quick questions
primary key
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:04:16.