Can the primary key in the entity bean be a Java primitive
type such as int?

Answer Posted / geetanand

IT SHOULD NOT BE PRIMITIVE. IT SHOULD BE AN OBJECT. AND IN
JAVA WE CAN CREATE OBJECTS OF ANY TYPE USING WRAPPER CLASSES.
SO WE CAN USE THIS WRAPPER CLASS OBJECTS.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some key actors in persistence api.

758


Can you be deported if you are stateless?

666


What is remote interface in ejb?

737


What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?

731


What is ptp model?

776


What is ejb application?

696


What is ejb ql?

793


Can remove() be a Stateless Session bean?

836


For ejb applications with bean-managed transaction demarcations, which of the following is used by the client to get a reference to the usertransaction object for the weblogic server domain?

770


What is jar, war, and ear?

795


An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

771


What ejb means?

710


Differentiate Conversational from Non-conversational interactions?

809


What is ejb and its types in java?

747


What is ejb and its types?

726