Project

General

Profile

Download (1.36 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.common;
11

    
12
import java.util.List;
13

    
14
import org.springframework.stereotype.Repository;
15

    
16
import eu.etaxonomy.cdm.model.common.OrderedTermBase;
17
import eu.etaxonomy.cdm.model.common.OrderedTermVocabulary;
18
import eu.etaxonomy.cdm.model.name.Rank;
19
import eu.etaxonomy.cdm.model.occurrence.Collection;
20
import eu.etaxonomy.cdm.persistence.dao.common.IOrderedTermVocabularyDao;
21

    
22
/**
23
 * @author a.mueller
24
 * TODO this dao is maybe only a work around for an ClassCastException error thrown when 
25
 * OrderedTermVocabulary<Rank> rankVocabulary = (OrderedTermVocabulary)orderedVocabularyDao.findByUuid(rankUuid);
26
 * is called in NameServiceImpl.getRankVocabulary().
27
 * If data exist in the database, it returns a TermVocabulary$CGLIB class created by hibernate
28
 */
29
@Repository
30
public class OrderedTermVocabularyDaoImpl extends CdmEntityDaoBase<OrderedTermVocabulary<OrderedTermBase>> implements
31
		IOrderedTermVocabularyDao {
32

    
33
	
34
	/**
35
	 * @param type
36
	 */
37
	public OrderedTermVocabularyDaoImpl() {
38
		super((Class)OrderedTermVocabulary.class);
39
	}
40

    
41

    
42
}
(9-9/13)