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

Is it possible to have threading in ejb?

947


What are the various types of entity beam?

975


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

1009


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

943


How does ejb container work?

911


can we stop the execution of a method before completion?

3002


How to generate ejb stubs in eclipse?

1223


What are versions of ejb?

1015


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?

1063


What does @inject mean in java?

1066


Which is more beneficial: CMP or BMP?

973


Can more than a single table be mapped in cmp?

973


Why is ejb used?

924


How is consistency maintained by Stateful Session through transaction updates ?

1122


What is stateless and stateful session bean in ejb?

926