Project

General

Profile

Download (1000 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.Marker;
12

    
13
/**
14
 * @author a.kohlbecker
15
 \* @since 30.07.2010
16
 *
17
 */
18
public class MarkerTypeAutoInitializer extends AutoPropertyInitializer<Marker> {
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(Marker bean) {
26
        beanInitializer.initializeInstance(bean.getMarkerType());
27
    }
28
    
29
    @Override
30
    public String hibernateFetchJoin(Class<?> clazz, String beanAlias) throws Exception{
31
    	return String.format(" LEFT JOIN FETCH %s.markerType ", beanAlias); 
32
    }
33

    
34
}
(8-8/13)