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.term;
|
11
|
|
12
|
import org.springframework.stereotype.Repository;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.term.OrderedTermBase;
|
15
|
import eu.etaxonomy.cdm.model.term.OrderedTermVocabulary;
|
16
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase;
|
17
|
import eu.etaxonomy.cdm.persistence.dao.term.IOrderedTermVocabularyDao;
|
18
|
|
19
|
/**
|
20
|
* @author a.mueller
|
21
|
* TODO this dao is maybe only a work around for an ClassCastException error thrown when
|
22
|
* OrderedTermVocabulary<Rank> rankVocabulary = (OrderedTermVocabulary)orderedVocabularyDao.findByUuid(rankUuid);
|
23
|
* is called in NameServiceImpl.getRankVocabulary().
|
24
|
* If data exist in the database, it returns a TermVocabulary$CGLIB class created by hibernate
|
25
|
*/
|
26
|
@Repository
|
27
|
public class OrderedTermVocabularyDaoImpl
|
28
|
extends CdmEntityDaoBase<OrderedTermVocabulary<OrderedTermBase<?>>>
|
29
|
implements IOrderedTermVocabularyDao {
|
30
|
|
31
|
/**
|
32
|
* @param type
|
33
|
*/
|
34
|
public OrderedTermVocabularyDaoImpl() {
|
35
|
super((Class)OrderedTermVocabulary.class);
|
36
|
}
|
37
|
}
|