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
Differentiate ‘Stateful Session’ from ‘Entity Bean’ ?
Differentiate “find a method” from “select method” in EJB ?
What are stateless functions?
Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?
What is stateless authentication?
What are the components of session beam?
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?
Enlist the declarative transaction types?
What is Session Bean Interface?
Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?
What is ejb and its types in java?
How to determine, that beans are TX or not?
What are the types of ejb?
What do you mean by ‘hot deployment’ ?
What is the difference between message driven beans and stateless session beans?