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 is session bean in ejb?
What is ejb and its types in java?
Name the interfaces that you used in Beans?
Does spring use ejb?
What is ejbdoclet?
Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?
A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?
What is the difference between find and select methods in ejb?
What are the system services of ejb container?
Difference between javaBeans and Enterprise JavaBeans?
1 Answers Indotech, Tech Mahindra,
Enlist the declarative transaction types?
What is ejb and why it is used?