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 |
Is decorator an ejb design pattern?
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?
Is it possible to have threading in ejb?
what is SessionBean, EntityBean?
What is session bean?
What does it mean to be stateless?
What is ejb in weblogic?
What is meant by manifest files ?
Is ejbCreate() method mandatory while defining a Session Bean?
How can a session bean be configured for transactions of bean-managed?
What is persistence?
Explain the concept of ejb ql?