/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.service;

import cz.muni.fi.pa165.dao.BookCollectionDao;
import cz.muni.fi.pa165.entity.BookCollection;
import java.util.List;
import javax.inject.Inject;

/**
 *
 * @author xkubist
 * @email m.kubistel@gmail.com
 */
public class BookCollectionServiceImpl implements BookCollectionService {
    @Inject
    BookCollectionDao bookCollectionDao;
    
    @Override
    public void create(BookCollection b){
        bookCollectionDao.create(b);
    }
    
    @Override
    public void delete(BookCollection b){
        bookCollectionDao.delete(b);
    }
    
    @Override
    public void update(BookCollection b){
        bookCollectionDao.update(b);
    }
    
    @Override
    public List<BookCollection> findAll(){
        return bookCollectionDao.findAll();
    }
    
    @Override
    public BookCollection findByName(String Name)
    {
        return bookCollectionDao.findByName(Name);
    }
    
    @Override
    public BookCollection findById(Long id){
        return bookCollectionDao.findById(id);
    }
}

@@ -678,111 +678,8 @@
     
-%0A    @Override%0A    public void update(BookCollection b)%7B%0A        bookCollectionDao.update(b);%0A    %7D%0A   
  %0A  
@@ -790,141 +790,8 @@
 %0A   
- %0A    @Override%0A    public BookCollection findByName(String Name)%0A    %7B%0A        return bookCollectionDao.findByName(Name);%0A    %7D%0A    
 %0A   

refactor BookCollectionServiceImpl class