Project

General

Profile

Download (1022 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 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
package eu.etaxonomy.cdm.persistence.dao.initializer;
10

    
11
import eu.etaxonomy.cdm.model.common.Annotation;
12

    
13
/**
14
 * @author a.kohlbecker
15
 * @date 30.07.2010
16
 *
17
 */
18
public class AnnotationTypeAutoInitializer extends AutoPropertyInitializer<Annotation> {
19

    
20

    
21
    /* (non-Javadoc)
22
     * @see eu.etaxonomy.cdm.persistence.dao.BeanAutoInitializer#initialize(eu.etaxonomy.cdm.model.common.CdmBase)
23
     */
24
    @Override
25
    public void initialize(Annotation bean) {
26
        beanInitializer.initializeInstance(bean.getAnnotationType());
27
    }
28
    
29
    @Override
30
    public String hibernateFetchJoin(Class<?> clazz, String beanAlias) throws Exception{
31
    	return String.format(" LEFT JOIN FETCH %s.annotationType ", beanAlias); 
32
    }
33

    
34
}
(3-3/13)