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 does ejb work in java?

0 Answers  


difference b/w the hybernate and entity bean

6 Answers   Wipro,


What is entity beans in ejb with example?

0 Answers  


Explain transaction and various methods to manage it?

0 Answers  


What is ejb technology?

0 Answers  






How to import ejb project in eclipse?

0 Answers  


how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing the class file.

3 Answers  


What are the benefits of ejb?

0 Answers  


java doesnot support multiple inhetance. but a interface can support.how the ambiguities are rectified in interfaces?

3 Answers  


What is Transaction attribute?

3 Answers  


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

0 Answers  


What is the procedure for the creation of stateless ejb?

0 Answers  


Categories