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 share an httpsession between a jsp and ejb?

951


Enlist the changes in EJB 2.1 ?

1075


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

3027


What is ejb in java?

1083


What are the various types of entity beam?

1074


What are stateless applications?

1126


Why is ejb needed?

1012


Explain the architectural relationship between JavaBeans and JTA?

3122


What are the components of ejb?

1052


What are the different kind of ejb's?

1086


What does ejb stand for?

1101


What is the use of @resource?

1131


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

1039


What does it mean to be stateless?

1046


Differentiate Conversational from Non-conversational interactions?

1093