package cz.muni.fi.pa165.dto;

public class LoanDTO {

}

@@ -28,30 +28,2205 @@
 o;%0A%0A
-public class LoanDTO %7B%0A
+import cz.muni.fi.pa165.enums.BookState;%0Aimport java.util.Date;%0Aimport java.util.Objects;%0A%0Apublic class LoanDTO %7B%0A    %0A    private Long id;%0A    private Date loanDate;%0A    private Boolean returned;%0A    private Date returnDate;%0A    private BookState returnBookState;%0A%0A    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public Date getLoanDate() %7B%0A        return loanDate;%0A    %7D%0A%0A    public void setLoanDate(Date loanDate) %7B%0A        this.loanDate = loanDate;%0A    %7D%0A%0A    public Boolean getReturned() %7B%0A        return returned;%0A    %7D%0A%0A    public void setReturned(Boolean returned) %7B%0A        this.returned = returned;%0A    %7D%0A%0A    public Date getReturnDate() %7B%0A        return returnDate;%0A    %7D%0A%0A    public void setReturnDate(Date returnDate) %7B%0A        this.returnDate = returnDate;%0A    %7D%0A%0A    public BookState getReturnBookState() %7B%0A        return returnBookState;%0A    %7D%0A%0A    public void setReturnBookState(BookState returnBookState) %7B%0A        this.returnBookState = returnBookState;%0A    %7D%0A    %0A    @Override%0A    public int hashCode() %7B%0A        int hash = 7;%0A        hash = 23 * hash + Objects.hashCode(this.id);%0A        hash = 23 * hash + Objects.hashCode(this.loanDate);%0A        hash = 23 * hash + Objects.hashCode(this.returned);%0A        hash = 23 * hash + Objects.hashCode(this.returnDate);%0A        hash = 23 * hash + Objects.hashCode(this.returnBookState);%0A        return hash;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (obj == null) %7B%0A            return false;%0A        %7D%0A        if (getClass() != obj.getClass()) %7B%0A            return false;%0A        %7D%0A        final LoanDTO other = (LoanDTO) obj;%0A        if (!Objects.equals(this.id, other.id)) %7B%0A            return false;%0A        %7D%0A        if (!Objects.equals(this.loanDate, other.loanDate)) %7B%0A            return false;%0A        %7D%0A        if (!Objects.equals(this.returned, other.returned)) %7B%0A            return false;%0A        %7D%0A        if (!Objects.equals(this.returnDate, other.returnDate)) %7B%0A            return false;%0A        %7D%0A        if (this.returnBookState != other.returnBookState) %7B%0A            return false;%0A        %7D%0A        return true;%0A    %7D
 %0A%7D%0A

add LoanDTO class