0% found this document useful (0 votes)
34 views

Basic Query3

The document describes a class model representing books, authors, and publishers with relationships. The class diagram shows that a book can have multiple authors and one publisher, and includes the book's ISBN, price, page count, publication date, title, and references to its publisher and authors. An author contains their first and last name only, while a publisher contains only its name. Collections of books, publishers, and authors are assumed to exist in fields for sample data.

Uploaded by

jhansi rani
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Basic Query3

The document describes a class model representing books, authors, and publishers with relationships. The class diagram shows that a book can have multiple authors and one publisher, and includes the book's ISBN, price, page count, publication date, title, and references to its publisher and authors. An author contains their first and last name only, while a publisher contains only its name. Collections of books, publishers, and authors are assumed to exist in fields for sample data.

Uploaded by

jhansi rani
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Class model used in this article

In the examples, we will use a data structure that represents information about books, their authors, and publishers. The class
diagram for that kind of data structure is shown on the figure below:

Each book can have several authors and one publisher. The fields associated to entities are shown on the diagram. Book has
information about ISBN, price, number of pages, publication date, and title. Also, it has a reference to a publisher, and a
reference to a set of authors. Author has a first name and last name without reference back to a book, and publisher has just
a name without reference to books he published.

There will be the assumption that a collections of books, publishers, and authors are placed in the SampleData.Books,
SampleData.Publishers, and SampleData.Authors fields.

You might also like