Can the primary key in the entity bean be a Java primitive
type such as int?
Answer Posted / 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 |
Post New Answer View All Answers
Is it possible to have threading in ejb?
What are the various types of entity beam?
What are the basic and subtypes of enterprise java beans (ejb)?
What is the difference between message driven beans and stateless session beans?
How does ejb container work?
can we stop the execution of a method before completion?
How to generate ejb stubs in eclipse?
What are versions of ejb?
Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?
What does @inject mean in java?
Which is more beneficial: CMP or BMP?
Can more than a single table be mapped in cmp?
Why is ejb used?
How is consistency maintained by Stateful Session through transaction updates ?
What is stateless and stateful session bean in ejb?