Can the primary key in the entity bean be a Java primitive
type such as int?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kameshwar
The primary key can't be a primitive type--use the
primitive wrapper classes, instead. For example, you can use
java.lang.Integer as the primary key class, but not int (it
has to be a class, not a primitive)
Is This Answer Correct ? | 5 Yes | 2 No |
what are main features in EJB?
What is EJB server provider?
What is @injectmock?
What is the purpose of ejb in java?
when deploying an EJB, does it possible to specify multiple JNDI names?
How many ejb objects are created for a bean?
What do you mean by ‘hot deployment’ ?
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?
what is the difference between stateless and stateful sessions?
What is the procedure for the creation of stateless ejb?
How ejb invocation happens?
Why stateless is better than stateful?