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