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

Write down the steps for the creation of stateless ejb.

1010


What is the difference between session and entity beans? When should I use one or the other?

979


What is ejb javatpoint?

994


What is EJB server?

1099


Can an ejb send asynchronous notifications to its clients?

980


What is the difference between ejb and spring?

1052


What are the components of ejb?

1012


Why do we use ejb?

1003


What is stateless code?

1015


What is dependency injection in ejb?

1044


What is session bean in ejb?

999


Explain the architectural relationship between JavaBeans and JTA?

3026


What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?

1008


Why should we use ejb?

930


What are stateless applications?

1073