checklist repo and service layer added
This commit is contained in:
parent
411b52029c
commit
dbe3384788
src/main/java/se/su/dsv/scipro/springdata
@ -0,0 +1,17 @@
|
|||||||
|
package se.su.dsv.scipro.springdata.repos;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import se.su.dsv.scipro.data.dataobjects.CheckList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: fred-fri
|
||||||
|
* date: 2012 03 26
|
||||||
|
*/
|
||||||
|
@Transactional(readOnly = true)
|
||||||
|
public interface ChecklistRepo extends JpaRepository<CheckList, Long>, QueryDslPredicateExecutor<CheckList> {
|
||||||
|
|
||||||
|
//nothing here yet
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
package se.su.dsv.scipro.springdata.serviceimpls;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import se.su.dsv.scipro.data.dataobjects.CheckList;
|
||||||
|
import se.su.dsv.scipro.springdata.repos.ChecklistRepo;
|
||||||
|
import se.su.dsv.scipro.springdata.services.ChecklistService;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: fred-fri
|
||||||
|
* date: 2012 03 26
|
||||||
|
*/
|
||||||
|
@Service ( "checklistService" )
|
||||||
|
@Transactional ( readOnly = true )
|
||||||
|
public class ChecklistServiceImpl extends AbstractQueryService<CheckList, Long> implements ChecklistService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ChecklistRepo checklistRepo;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public ChecklistServiceImpl(
|
||||||
|
@Qualifier("checklistRepo")
|
||||||
|
ChecklistRepo checklistRepo) {
|
||||||
|
super(checklistRepo, checklistRepo);
|
||||||
|
System.out.println("BLA BLA");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package se.su.dsv.scipro.springdata.services;
|
||||||
|
|
||||||
|
import se.su.dsv.scipro.data.dataobjects.CheckList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: fred-fri
|
||||||
|
* date: 2012 03 26
|
||||||
|
*/
|
||||||
|
public interface ChecklistService extends CrudService<CheckList, Long>, QueryService<CheckList, Long> {
|
||||||
|
|
||||||
|
//nothing here yet
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user