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 is the difference between ejbcreate() and ejbpostcreate?

538


What is use of @postconstruct?

525


Is udp stateless?

578


Enlist the declarative transaction types?

602


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?

597






Enlist the CallBack methods of Entity Bean.

590


Define ejb Create() and EjbPostCreate()?

569


What is stateless authentication?

521


Is functional programming stateless?

527


What is the default transaction attribute for an ejb?

543


In what format is the conversational data written to the disk?

514


What is ejb technology?

500


Differentiate Conversational from Non-conversational interactions?

548


What is ejb and its uses?

520


How can I access ejb from asp?

591