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...

how to set the relationship between tables in ejb

Answer Posted / ch.n.v.ganesh

First, relationships are maintained through foreign
keys, but you do not define foreign keys as conventional
EJB variables; they are generated and maintained by the
container.

Second, relationships generate additional methods on the
local interfaces of the EJBs involved. Consequently, you
will need to work with the Home interfaces for beans
through JNDI, rather than using factory classes as you
might for accessing them through their Remote
interfaces.

Finally, Container Managed Relationship (cmr) fields
may be used in EJB QL queries, just like conventional
fields, but only for EJBs within the same jar file.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the attributes of transaction in ejb?

892


Where is ejb used?

888


What are the types of ejb?

928


How can a CORBA object, accessed from a EJB?

2190


Define ejb Create() and EjbPostCreate()?

1032


What are stateless applications?

1019


Which is the only method defined in the javax.ejb.handle interface?

1032


What are the differences between ejb 3.0 and ejb 2.0?

930


How to invoke ejb from java client?

913


What is the difference between @requestparam and @pathvariable?

915


can we stop the execution of a method before completion?

2993


why Bean class implements all business method of Remote interface but bean bean class not implements the remote interface

2407


What is ejb and why it is used?

944


Name the acid properties of a transaction.

989


What is remote interface in ejb?

908