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?

Answers were Sorted based on User's Feedback



Can the primary key in the entity bean be a Java primitive type such as int?..

Answer / geetanand

IT SHOULD NOT BE PRIMITIVE. IT SHOULD BE AN OBJECT. AND IN
JAVA WE CAN CREATE OBJECTS OF ANY TYPE USING WRAPPER CLASSES.
SO WE CAN USE THIS WRAPPER CLASS OBJECTS.

Is This Answer Correct ?    4 Yes 0 No

Can the primary key in the entity bean be a Java primitive type such as int?..

Answer / 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

More EJB Interview Questions

Is decorator an ejb design pattern?

0 Answers  


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

2 Answers   Infosys,


Is it possible to have threading in ejb?

0 Answers  


what is SessionBean, EntityBean?

2 Answers  


What is session bean?

0 Answers  


What does it mean to be stateless?

0 Answers  


What is ejb in weblogic?

0 Answers  


What is meant by manifest files ?

2 Answers  


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

0 Answers  


How can a session bean be configured for transactions of bean-managed?

0 Answers  


What is persistence?

2 Answers  


Explain the concept of ejb ql?

0 Answers  


Categories