@@ -0,0 +1,1311 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage cz.muni.fi.pa165.service;%0A%0Aimport cz.muni.fi.pa165.entity.BookCollection;%0Aimport java.util.List;%0A%0A/**%0A *%0A * @author xkubist%0A * @email m.kubistel@gmail.com%0A */%0Apublic interface BookCollectionService %7B%0A     /**%0A     * Creates the BookCollection in database.%0A     *%0A     * @param b BookCollection object to be persisted%0A     * */%0A    void create(BookCollection b);%0A    /**%0A     * delete the BookCollection from database%0A     * %0A     * @param b BookCollection to be deleted%0A     */%0A    void delete(BookCollection b);%0A    /**%0A     * update the BookCollection from database%0A     * %0A     * @param b BookCollection to be deleted%0A     */%0A    void update(BookCollection b);%0A    /**%0A     * return list of all BookCollection objects from database %0A     * %0A     * @return list of all BookCollection objects from database %0A     */%0A    List%3CBookCollection%3E findAll();%0A    /**%0A     * return BookCollection objects with target name %0A     * %0A     * @return BookCollection objects with target name %0A     */%0A    BookCollection findByName(String Name);%0A    /**%0A     * return BookCollection objects with target id %0A     * %0A     * @return BookCollection objects with target id %0A     */%0A    BookCollection findById(Long id);%0A%7D%0A

create BookCollectionService class