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


Please Help Members By Posting Answers For Below Questions

What is ejb application?

481


Can beans who are involved in transaction have 'passivation' process?

534


What is stateless code?

487


What is entity bean?

583


Explain the architectural relationship between JavaBeans and JTA?

2385






What is ejb in weblogic?

546


Match the ejb functions given below with the functionality equivalent in sql?

545


What are ejb components?

524


What is meant by ejb?

511


Is ejbCreate() method mandatory while defining a Session Bean?

590


What is the difference between message driven beans and stateless session beans?

514


Which is more beneficial: Stateful or Stateless Bean?

575


What is an ejb context?

559


Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

585


What causes statelessness?

472