1
|
/**
|
2
|
* Copyright (C) 2008 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*/
|
6
|
|
7
|
package eu.etaxonomy.cdm.persistence.dao.hibernate.term;
|
8
|
|
9
|
import java.util.List;
|
10
|
|
11
|
import org.apache.log4j.Logger;
|
12
|
import org.hibernate.Criteria;
|
13
|
import org.springframework.stereotype.Repository;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.term.Representation;
|
16
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.LanguageStringBaseDaoImpl;
|
17
|
import eu.etaxonomy.cdm.persistence.dao.term.IRepresentationDao;
|
18
|
|
19
|
/**
|
20
|
* @author a.babadshanjan
|
21
|
* @since 10.09.2008
|
22
|
*/
|
23
|
@Repository
|
24
|
public class RepresentationDaoImpl
|
25
|
extends LanguageStringBaseDaoImpl<Representation> implements IRepresentationDao {
|
26
|
@SuppressWarnings("unused")
|
27
|
private static final Logger logger = Logger.getLogger(RepresentationDaoImpl.class);
|
28
|
|
29
|
public RepresentationDaoImpl() {
|
30
|
super(Representation.class);
|
31
|
}
|
32
|
|
33
|
public List<Representation> getAllRepresentations(Integer limit, Integer start) {
|
34
|
Criteria crit = getSession().createCriteria(Representation.class);
|
35
|
List<Representation> results = crit.list();
|
36
|
return results;
|
37
|
}
|
38
|
}
|
39
|
|