Reverted failed test, because of missing jar-file.
This commit is contained in:
parent
8e35a11dee
commit
a488ec456c
src/main/java/se/su/dsv/scipro/springdata
@ -1,20 +1,14 @@
|
||||
package se.su.dsv.scipro.springdata.serviceimpls;
|
||||
|
||||
import com.mysema.query.types.path.DateTimePath;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import se.su.dsv.scipro.data.dataobjects.Employee;
|
||||
import se.su.dsv.scipro.data.dataobjects.QEmployee;
|
||||
import se.su.dsv.scipro.springdata.repos.SupervisorRepo;
|
||||
import se.su.dsv.scipro.springdata.services.SupervisorService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@ -23,18 +17,18 @@ import java.util.List;
|
||||
public class SupervisorServiceImpl extends AbstractQueryService<Employee, Long> implements SupervisorService {
|
||||
|
||||
|
||||
@Resource
|
||||
private SupervisorRepo supervisorRepo;
|
||||
@Resource
|
||||
private SupervisorRepo supervisorRepo;
|
||||
|
||||
@Autowired
|
||||
public SupervisorServiceImpl(@Qualifier("supervisorRepo") SupervisorRepo supervisorRepo) {
|
||||
super(supervisorRepo, supervisorRepo);
|
||||
System.out.println("BLA BLA");
|
||||
}
|
||||
@Autowired
|
||||
public SupervisorServiceImpl(@Qualifier("supervisorRepo") SupervisorRepo supervisorRepo) {
|
||||
super(supervisorRepo, supervisorRepo);
|
||||
System.out.println("BLA BLA");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Employee> findAllEmployees(org.springframework.data.domain.Sort orders) {
|
||||
return supervisorRepo.findAll(orders);
|
||||
@Override
|
||||
public List<Employee> findAllEmployees() {
|
||||
return supervisorRepo.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ import java.util.List;
|
||||
* date: 2012 03 26
|
||||
*/
|
||||
public interface SupervisorService extends CrudService<Employee,Long>, QueryService<Employee, Long> {
|
||||
public List<Employee> findAllEmployees(org.springframework.data.domain.Sort orders);
|
||||
public List<Employee> findAllEmployees();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user