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
Which is more beneficial: CMP or BMP?
Differentiate “find a method” from “select method” in EJB ?
What is the difference between @requestparam and @pathvariable?
What is ejb and its types?
What is the difference between session and entity beans? When should I use one or the other?
What is entity bean?
What is bean-managed transaction?
What is the difference between message driven beans and stateless session beans?
Why do we use @requestmapping?
What is the procedure of ejb container to handle exceptions?
What is software architecture of ejb?
What were entity beans?
What is stateless authentication?
What is meant by ejb?
What is ejb context?