Entity relations

Discussions

EJB design: Entity relations

  1. Entity relations (3 messages)

    Hi all,
    Is it necessary to define relationships for every entity bean we create?

    Thanks,
    Seshu
  2. "Here when you are talking about relationships,I am not clear with what sought of relationships you are talking about.Is it a relationship with database or CMR.If CMR then according toEJB spec 2,CMR realtions are not mandatory they are optional.Hope I am near to your point.If not plz make bit more clear"
  3. Hi,

    I have an entity bean. It has three foreign keys in it. Now, should i define relationships with those fields (or those correspoding beans)...

    Could u explain how to define the relationships?

    Thanks,
    Seshu
  4. Is it necessary to define relationships for every entity bean we create?


    Of course no. It's necessary only if you want to navigate relations, or if you want the container checks and handle data integrity.

    Regards,
    Fabrizio