2 * Copyright (C) 2008 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
7 package eu
.etaxonomy
.cdm
.persistence
.dao
.hibernate
.term
;
11 import org
.apache
.logging
.log4j
.LogManager
;import org
.apache
.logging
.log4j
.Logger
;
12 import org
.hibernate
.Criteria
;
13 import org
.springframework
.stereotype
.Repository
;
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
;
20 * @author a.babadshanjan
24 public class RepresentationDaoImpl
25 extends LanguageStringBaseDaoImpl
<Representation
> implements IRepresentationDao
{
26 @SuppressWarnings("unused")
27 private static final Logger logger
= LogManager
.getLogger(RepresentationDaoImpl
.class);
29 public RepresentationDaoImpl() {
30 super(Representation
.class);
33 public List
<Representation
> getAllRepresentations(Integer limit
, Integer start
) {
34 Criteria crit
= getSession().createCriteria(Representation
.class);
35 List
<Representation
> results
= crit
.list();