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

Is it possible to have threading in ejb?

779


How entity beans support container managed persistence?

2176


Define Initial Context?

800


What are the various types of entrepreneur java bean?

724


What is an ejb container?

749


Name the attributes of javax.ejb.stateful.

797


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

798


What are the basic and subtypes of enterprise java beans (ejb)?

779


What are the advantages of ejb components?

769


How many ejb objects are created for a bean?

743


What are the advantages of ejb?

792


What is backing bean?

819


What is EJB object?

820


How many types of session beans are available in ejb?

735


What is ejb and how it works?

770