package cz.muni.fi.pa165.dto;

public class BookCollectionDTO {

}

@@ -28,40 +28,1433 @@
 o;%0A%0A
-public class BookCollectionDTO %7B%0A
+import java.util.HashSet;%0Aimport java.util.Objects;%0Aimport java.util.Set;%0Apublic class BookCollectionDTO %7B%0A    private Long id;%0A    private String name;%0A    private Set%3CBookDTO%3E books = new HashSet%3C%3E();%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 String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public Set%3CBookDTO%3E getBooks() %7B%0A        return books;%0A    %7D%0A%0A    public void setBooks(Set%3CBookDTO%3E books) %7B%0A        this.books = books;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int hash = 7;%0A        hash = 71 * hash + Objects.hashCode(this.id);%0A        hash = 71 * hash + Objects.hashCode(this.name);%0A        hash = 71 * hash + Objects.hashCode(this.books);%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 BookCollectionDTO other = (BookCollectionDTO) obj;%0A        if (!Objects.equals(this.id, other.id)) %7B%0A            return false;%0A        %7D%0A        if (!Objects.equals(this.name, other.name)) %7B%0A            return false;%0A        %7D%0A        if (!Objects.equals(this.books, other.books)) %7B%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A    %0A    %0A    
 %0A%7D%0A

update BookCollectionDTO class