2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.persistence
.dao
.hibernate
.name
;
12 import java
.util
.List
;
14 import org
.apache
.log4j
.Logger
;
15 import org
.hibernate
.Criteria
;
16 import org
.springframework
.stereotype
.Repository
;
18 import eu
.etaxonomy
.cdm
.model
.name
.TypeDesignationBase
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.hibernate
.common
.SourcedEntityDaoImpl
;
20 import eu
.etaxonomy
.cdm
.persistence
.dao
.name
.ITypeDesignationDao
;
27 public class TypeDesignationDaoHibernateImpl
28 extends SourcedEntityDaoImpl
<TypeDesignationBase
<?
>>
29 implements ITypeDesignationDao
{
31 @SuppressWarnings("unused")
32 private static final Logger logger
= Logger
.getLogger(TypeDesignationDaoHibernateImpl
.class);
34 public TypeDesignationDaoHibernateImpl() {
35 super((Class
)(TypeDesignationBase
.class));
40 public List
<TypeDesignationBase
<?
>> getAllTypeDesignations(Integer limit
, Integer start
) {
41 Criteria crit
= getSession().createCriteria(TypeDesignationBase
.class);
43 crit
.setMaxResults(limit
);
46 crit
.setFirstResult(start
);
48 @SuppressWarnings("unchecked")
49 List
<TypeDesignationBase
<?
>> results
= crit
.list();