@@ -0,0 +1,1358 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage cz.muni.fi.pa165.dto;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Objects;%0Aimport java.util.Set;%0A%0A/**%0A *%0A * @author xkubist%0A */%0Apublic class CreateBookCollectionDTO %7B%0A%0A    private String name;%0A    private Set%3CBookDTO%3E books = new HashSet%3C%3E();%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 void addBook(BookDTO collection) %7B%0A        books.add(collection);%0A    %7D%0A%0A    public void setCollections(Set%3CBookDTO%3E books) %7B%0A        this.books = books;%0A    %7D%0A%0A%0A    @Override%0A    public int hashCode() %7B%0A        int hash = 5;%0A        hash = 97 * hash + Objects.hashCode(this.name);%0A        hash = 97 * 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 CreateBookCollectionDTO other = (CreateBookCollectionDTO) obj;%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%7D%0A

fix bug in BookCollectionDao class