how to set the relationship between tables in ejb



how to set the relationship between tables in ejb..

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

More EJB Interview Questions

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

0 Answers  


Why is ejb needed?

0 Answers  


Life cycle methods in stateless Session Beans?

3 Answers   Virtusa,


Explain the architectural relationship between EJB & XML?

1 Answers   Wipro,


What is session bean?

0 Answers  






What do you mean by timer service and where it is used?

0 Answers  


what is SessionBean, EntityBean?

2 Answers  


Why should we use ejb?

0 Answers  


What is Enterprise JavaBeans (EJB)?

0 Answers  


What is bean-managed persistence?

0 Answers  


How do I use a less than or greater than on a message selector in ejb-jar.xml?

0 Answers  


Define ripple effect?

0 Answers  


Categories