Presentation is loading. Please wait.

Presentation is loading. Please wait.

For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to.

Similar presentations


Presentation on theme: "For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to."— Presentation transcript:

1 For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to know if it is a reference book or not, purchase price, purchase date, and the order number of the copy. This is to be able to identify specific copies of the book. The library also wants to know name, personal number, address and number of library card, for each borrower. For each loan the library wants to know date of the loan, date for returning the book and which copy of the book is lent out, who lent it and who at the library handled the loan. A borrower should also be able to reserve books. We want to know what date and time a certain book is reserved and who did reserve it. It can be several reservations for the same book. When the borrower borrows the reserved book or cancels his/her reservation, the reservation is canceld. Domain description

2 Important concepts in the domain Classes Attributes For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to know if it is a reference book or not, purchase price, purchase date, and the order number of the copy. This is to be able to identify specific copies of the book. The library also wants to know name, personal number, address and number of library card, for each borrower. For each loan the library wants to know date of the loan, date for returning the book and which copy of the book is lent out, who lent it and who at the library handled the loan. A borrower should also be able to reserve books. We want to know what date and time a certain book is reserved and who did reserve it. It can be several reservations for the same book.

3 Important concepts in the domain Classes Attributes For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to know if it is a reference book or not, purchase price, purchase date, and the order number of the copy. This is to be able to identify specific copies of the book. The library also wants to know name, personal number, address and number of library card, for each borrower. For each loan the library wants to know date of the loan, date for returning the book and which copy of the book is lent out, who lent it and who at the library handled the loan. A borrower should also be able to reserve books. We want to know what date and time a certain book is reserved and who did reserve it. It can be several reservations for the same book.

4 Classes and attributes For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to know if it is a reference book or not, purchase price, purchase date, and the order number of the copy. This is to be able to identify specific copies of the book. order_nr purchase_date purchase_price reference_book: yes/no titel genre author publisher ISBN-nr Booktitle Bookcopy Classes Attributes

5 Associations and multiplicity For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to know if it is a reference book or not, purchase price, purchase date, and the order number of the copy. This is to be able to identify specific copies of the book. order_nr purchase_date purchase_price reference_book: yes/no 1..* titel genre author publisher ISBN-nr 1 Booktitle Bookcopy Classes Attributes

6 Information about Borrower Classes Attributes The library also wants to know name, personal number, address and number of library card, for each borrower. For each loan the library wants to know date of the loan, date for returning the book and which copy of the book is lent out, who lent it and who at the library handled the loan. Booktitle titel genre author publisher ISBN-nr 1..* 1 Borrower name address personalnr cardnr Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

7 Information about Loan The library also wants to know name, personal number, address and number of library card, for each borrower. For each loan the library wants to know date of the loan, date for returning the book and which copy of the book is lent out, who lent it and who at the library handled the loan. Booktitle titel genre author publisher ISBN-nr 1..* 1 Borrower name address personalnr cardnr Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

8 Relations between Loan, Borrower och Bookcopy The library also wants to know name, personal number, address and number of library card, for each borrower. For each loan the library wants to know date of the loan, date for returning the book and which copy of the book is lent out, who lent it and who at the library handled the loan. Booktitle titel genre author publisher ISBN-nr 1..* 1 Loan loandate returndate staffmember 0..* 1 Borrower name address personalnr cardnr 0..* 1 Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

9 Reservations A borrower should also be able to reserve books. We want to know what date and time a certain book is reserved and who did reserve it. It can be several reservations for the same book. When the borrower borrows the reserved book or cancels his/her reservation, the reservation is canceld. Booktitle titel genre author publisher ISBN-nr 1..* 1 Loan loandate returndate staffmember 0..* 1 Borrower name address personalnr cardnr 0..* 1 makes a reservation 0..* Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

10 Information about reservations A borrower should also be able to reserve books. We want to know what date and time a certain book is reserved and who did reserve it. It can be several reservations for the same book. When the borrower borrows the reserved book or cancels his/her reservation, the reservation is cancelled. Booktitle titel genre author publisher ISBN-nr 1..* 1 Loan loandate returndate staffmember 0..* 1 Borrower name address personalnr cardnr 0..* 1 Reservation reservationdate reservationtime cancelled: yes/no 0..* 1 1 Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

11 Information about Staffmembers Booktitle titel genre author publisher ISBN-nr 1..* 1 Loan lonedate returndate 0..* 1 Borrower name address personalnr cardnr 0..* 1 1 1 Staffmember name address personalnr employeenr 1 0..* staffmember Reservation reservationdate reservationtime cancelled: yes/no Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

12 Person and generalization Booktitle titel genre author publisher ISBN-nr 1..* 1 Loan lonedate returndate 0..* 1 1 1 Person name address personalnr 1 Borrower cardnr Staffmember employeenr 1 0..* name address personalnr name address personalnr Reservation reservationdate reservationtime cancelled: yes/no Bookcopy order_nr purchase_date purchase_price reference_book: yes/no

13 Ready model Booktitle titel genre author publisher ISBN-nr 1..* 1 Loan lonedate returndate 0..* 1 1 1 Person name address personalnr Staffmember employeenrnr Borrower cardnr 1 1 Reservation reservationdate reservationtime cancelled: yes/no Bookcopy order_nr purchase_date purchase_price reference_book: yes/no


Download ppt "For every book title we want to know: author, titel, publisher, ISBN-number and to which genre it belongs. About every copy of the book we also want to."

Similar presentations


Ads by Google