Revision ac7949f3
Added by Andreas Müller almost 2 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/common/CdmEntityDaoBase.java | ||
---|---|---|
1167 | 1167 |
List<S> result = criteria.list(); |
1168 | 1168 |
defaultBeanInitializer.initializeAll(result, propertyPaths); |
1169 | 1169 |
return result; |
1170 |
|
|
1171 | 1170 |
} |
1172 | 1171 |
|
1173 | 1172 |
@Override |
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/processor/CdmBeanProcessingRegistry.java | ||
---|---|---|
14 | 14 |
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger; |
15 | 15 |
|
16 | 16 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
17 |
import net.sf.json.CycleSetAcess; |
|
17 |
import net.sf.json.CycleSetAccess;
|
|
18 | 18 |
|
19 | 19 |
/** |
20 | 20 |
* @author a.kohlbecker |
... | ... | |
22 | 22 |
* @deprecated class is not beeing used but kept as reference |
23 | 23 |
*/ |
24 | 24 |
@Deprecated |
25 |
public class CdmBeanProcessingRegistry extends CycleSetAcess { |
|
25 |
public class CdmBeanProcessingRegistry extends CycleSetAccess {
|
|
26 | 26 |
|
27 | 27 |
private static final Logger logger = LogManager.getLogger(CdmBeanProcessingRegistry.class); |
28 | 28 |
|
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/json/processor/bean/HibernateProxyBeanProcessor.java | ||
---|---|---|
1 | 1 |
/** |
2 |
* |
|
3 |
*/ |
|
2 |
* Copyright (C) 2013 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 |
*/ |
|
4 | 9 |
package eu.etaxonomy.cdm.remote.json.processor.bean; |
5 | 10 |
|
6 |
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger; |
|
11 |
import org.apache.logging.log4j.LogManager; |
|
12 |
import org.apache.logging.log4j.Logger; |
|
7 | 13 |
|
8 | 14 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
9 |
import net.sf.json.CycleSetAcess; |
|
15 |
import net.sf.json.CycleSetAccess;
|
|
10 | 16 |
import net.sf.json.JSONObject; |
11 | 17 |
import net.sf.json.JsonConfig; |
12 | 18 |
import net.sf.json.processors.JsonBeanProcessor; |
... | ... | |
14 | 20 |
/** |
15 | 21 |
* @author a.kohlbecker |
16 | 22 |
*/ |
17 |
public class HibernateProxyBeanProcessor extends CycleSetAcess implements JsonBeanProcessor { |
|
23 |
public class HibernateProxyBeanProcessor extends CycleSetAccess implements JsonBeanProcessor {
|
|
18 | 24 |
|
19 | 25 |
public static final Logger logger = LogManager.getLogger(HibernateProxyBeanProcessor.class); |
20 | 26 |
|
cdmlib-remote/src/main/java/net/sf/json/CycleSetAccess.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2009 EDIT European Distributed Institute of Taxonomy |
|
3 |
* http://www.e-taxonomy.eu |
|
4 |
* |
|
5 |
* The contents of this file are subject to the Mozilla Public License Version |
|
6 |
* 1.1 See LICENSE.TXT at the top of this package for the full license terms. |
|
7 |
*/ |
|
8 |
package net.sf.json; |
|
9 |
|
|
10 |
/** |
|
11 |
* Base class for JSON Beanprocessors. |
|
12 |
* |
|
13 |
* This class must be located in the net.sf.json since it |
|
14 |
* needs access to the protected static methods in {@link JSONObject} |
|
15 |
* |
|
16 |
* @author a.kohlbecker |
|
17 |
* @since 19.03.2009 |
|
18 |
*/ |
|
19 |
public class CycleSetAccess{ |
|
20 |
|
|
21 |
public void removeFromCycleSet(Object instance) { |
|
22 |
AbstractJSON.removeInstance(instance); |
|
23 |
} |
|
24 |
|
|
25 |
public void addToCycleSet(Object instance) { |
|
26 |
AbstractJSON.addInstance(instance); |
|
27 |
} |
|
28 |
|
|
29 |
} |
cdmlib-remote/src/main/java/net/sf/json/CycleSetAcess.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2009 EDIT European Distributed Institute of Taxonomy |
|
3 |
* http://www.e-taxonomy.eu |
|
4 |
* |
|
5 |
* The contents of this file are subject to the Mozilla Public License Version |
|
6 |
* 1.1 See LICENSE.TXT at the top of this package for the full license terms. |
|
7 |
*/ |
|
8 |
|
|
9 |
package net.sf.json; |
|
10 |
|
|
11 |
|
|
12 |
/** |
|
13 |
* Base class for JSON Beanprocessors. |
|
14 |
* |
|
15 |
* This class must be located in the net.sf.json since it |
|
16 |
* needs access to the protected static methods in {@link JSONObject} |
|
17 |
* |
|
18 |
* @author a.kohlbecker |
|
19 |
* @since 19.03.2009 |
|
20 |
* |
|
21 |
*/ |
|
22 |
public class CycleSetAcess{ |
|
23 |
|
|
24 |
public void removeFromCycleSet(Object instance) { |
|
25 |
JSONObject.removeInstance(instance); |
|
26 |
} |
|
27 |
|
|
28 |
public void addToCycleSet(Object instance) { |
|
29 |
JSONObject.addInstance(instance); |
|
30 |
} |
|
31 |
|
|
32 |
} |
Also available in: Unified diff
cleanup