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
Enlist the enterprise beans types?
Is microservice stateless?
Explain what is an EJB Context?
What is Enterprise JavaBeans Query Language (EJB QL)?
Why is ejb needed?
What is ejb and its types?
How do I use a less than or greater than on a message selector in ejb-jar.xml?
What are the attributes of transaction in ejb?
Which is more beneficial: Stateful or Stateless Bean?
Differentiate “find a method” from “select method” in EJB ?
What is ejb framework?
What is ejb container?
What is an entity manager?
What is ejb in java?
Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?