1 / 6

Relationships

Relationships. Celsina Bignoli bignolic@smccd.net. Cardinality. One-to-one(1:1) One office has one address One-to-many (1:N) A group and the people part of it Many-to-many(M:N) Student takes many classes, a class has many students. 1:1 Relationship - Example. Department. Employee.

Télécharger la présentation

Relationships

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Relationships Celsina Bignoli bignolic@smccd.net

  2. Cardinality • One-to-one(1:1) • One office has one address • One-to-many (1:N) • A group and the people part of it • Many-to-many(M:N) • Student takes many classes, a class has many students

  3. 1:1 Relationship - Example Department Employee Foreign key

  4. 1:N Relationship Example Employee Foreign key Department

  5. M:N Relationship Example Book Author Book_Author

  6. Implementing Relationships Using CMP • Entity Bean has no fields • Getter/setter methods are declared abstract • ejbCreate(), ejbLoad(), ejbStore() have no code • Relationships are defined in the deployment descriptor

More Related