de.h_da.library.datamanagement.entity
Class Loan

java.lang.Object
  extended by de.h_da.library.datamanagement.entity.Loan

public class Loan
extends java.lang.Object

[entity] This entity represents a concrete loan of one BookOnStock by one Customer.


Field Summary
private  BookOnStock bookOnStock
          Concrete book instance that is being borrowed.
private  Customer customer
          Customer who borrows the book.
private  java.util.Date dueDate
          Date when the bookOnStock must be returned.
private  java.util.Date loanDate
          Date when the bookOnStock was borrowed.
private  LoanStatus status
          Status of the loan (BORROWED, DELAYED, RETURNED).
 
Constructor Summary
Loan()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bookOnStock

private BookOnStock bookOnStock
Concrete book instance that is being borrowed.


customer

private Customer customer
Customer who borrows the book.


dueDate

private java.util.Date dueDate
Date when the bookOnStock must be returned.


loanDate

private java.util.Date loanDate
Date when the bookOnStock was borrowed.


status

private LoanStatus status
Status of the loan (BORROWED, DELAYED, RETURNED).

Constructor Detail

Loan

public Loan()