Project

General

Profile

Download (1.1 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
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.
8
*/
9

    
10
package eu.etaxonomy.cdm.persistence.dao.hibernate.description;
11

    
12
import java.util.List;
13

    
14
import org.apache.log4j.Logger;
15
import org.hibernate.Criteria;
16
import org.springframework.stereotype.Repository;
17

    
18
import eu.etaxonomy.cdm.model.description.Feature;
19
import eu.etaxonomy.cdm.persistence.dao.description.IFeatureDao;
20
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase;
21
import eu.etaxonomy.cdm.persistence.query.OrderHint;
22

    
23

    
24
@Repository
25
public class FeatureDaoImpl extends CdmEntityDaoBase<Feature> implements IFeatureDao{
26
	@SuppressWarnings("unused")
27
	private static final Logger logger = Logger.getLogger(FeatureDaoImpl.class);
28

    
29
	public FeatureDaoImpl() {
30
		super(Feature.class); 
31
	}
32
	
33
	public List<Feature> list() {
34
		Criteria crit = getSession().createCriteria(type); 
35
		return crit.list(); 
36
	}
37
}
(3-3/10)