Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 activemq used for?

905


List down the steps for the demonstration of ejp persistence mechanism.

1036


Why do we need ejb?

966


Is having static initializer blocks legal in ejb?

899


What do you mean by abstract schema?

1004


What is stateless code?

953


Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?

950


Explain ejbhome and ejbobject in ejb?

1000


What is bean-managed transaction?

1038


What do you mean by bean managed transaction?

990


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

1015


What is the full form of ejb in java?

993


What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?

1004


What happens when I change a value in the httpsession from inside an ejb?

919


What changes have been made in ejb 2.0 specifications?

996