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
What is activemq used for?
List down the steps for the demonstration of ejp persistence mechanism.
Why do we need ejb?
Is having static initializer blocks legal in ejb?
What do you mean by abstract schema?
What is stateless code?
Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?
Explain ejbhome and ejbobject in ejb?
What is bean-managed transaction?
What do you mean by bean managed transaction?
Is ejbCreate() method mandatory while defining a Session Bean?
What is the full form of ejb in java?
What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?
What happens when I change a value in the httpsession from inside an ejb?
What changes have been made in ejb 2.0 specifications?