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

Can an ejb send asynchronous notifications to its clients?

533


What is difference between stateless and stateful?

495


What is activemq used for?

509


What is @resource in java?

526


What is enterprise javabeans (ejb) container?

534






What are the limitations of using local object?

535


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

528


What is Enterprise JavaBeans (EJB)?

600


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

548


What do you mean by in-memory replication?

611


What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?

560


Explain the architectural relationship between JavaBeans and JTA?

2389


What is @injectmock?

519


Define Context?

598


What does ejb stand for?

613