EJB Interview Questions and Answers
Ques. Can the primary key in the entity bean be a Java primitive type such as int?Ans. 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 it helpful? Yes No
Most helpful rated by users: