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 javatpoint?

753


What are transaction isolation levels in ejb?

751


Mention the three levels for applying interceptor methods.

756


What is ejb role in j2ee?

809


What is ejb in java with example?

722


How does the server decide which beans to passivate and activate?

780


What is EJB object?

794


What do you mean by ‘hot deployment’ ?

796


What is ejb and its types in java?

729


Differentiate “find a method” from “select method” in EJB ?

716


What is an ejb platform?

756


how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?

2682


What is stateless session?

744


What is session bean?

725


What is @injectmock?

691