Project

General

Profile

« Previous | Next » 

Revision 0ecfd682

Added by Andreas Müller almost 8 years ago

Remove bidirectionality for supplemental data #5743

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/OriginalSourceBase.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
24 24

  
25 25
import org.apache.commons.lang.StringUtils;
26 26
import org.apache.log4j.Logger;
27

  
28 27
import org.hibernate.annotations.Table;
29 28
import org.hibernate.annotations.Type;
30 29
import org.hibernate.envers.Audited;
......
35 34
/**
36 35
 * Abstract base class for classes implementing {@link eu.etaxonomy.cdm.model.common.IOriginalSource IOriginalSource}.
37 36
 * @see eu.etaxonomy.cdm.model.common.IOriginalSource
38
 * 
37
 *
39 38
 * @author m.doering
40 39
 * @version 1.0
41 40
 * @created 08-Nov-2007 13:06:22
......
56 55
	private static final long serialVersionUID = -1972959999261181462L;
57 56
	@SuppressWarnings("unused")
58 57
	private static final Logger logger = Logger.getLogger(OriginalSourceBase.class);
59
	
58

  
60 59
	/**
61
	 * The {@link OriginalSourceType type} of this source. According to PROV the type has to be thought as 
60
	 * The {@link OriginalSourceType type} of this source. According to PROV the type has to be thought as
62 61
	 * an activity that leads from the source entity to the current entity. It is not a property of the
63 62
	 * source itself.
64 63
	 */
......
70 69
    )
71 70
	@Audited
72 71
	private OriginalSourceType type;
73
	
72

  
74 73
	//The object's ID in the source, where the alternative string comes from
75 74
	@XmlElement(name = "IdInSource")
76 75
	private String idInSource;
77
	
76

  
78 77
	@XmlElement(name = "IdNamespace")
79 78
	private String idNamespace;
80 79

  
81
//***************** CONSTRUCTOR ***********************/	
80
//***************** CONSTRUCTOR ***********************/
82 81

  
83 82
	//for hibernate use only
84 83
	protected OriginalSourceBase() {
85
		
84

  
86 85
	}
87
	
86

  
88 87
	/**
89 88
	 * Constructor
90
	 * @param type2 
89
	 * @param type2
91 90
	 */
92 91
	protected OriginalSourceBase(OriginalSourceType type){
93 92
		if (type == null){
......
117 116
	public void setIdNamespace(String idNamespace) {
118 117
		this.idNamespace = idNamespace;
119 118
	}
120
	
119

  
121 120

  
122 121
	@Override
123 122
	public OriginalSourceType getType() {
......
129 128
		this.type = type;
130 129
	}
131 130

  
132
	
131

  
133 132
//********************** CLONE ************************************************/
134
	 
133

  
135 134
	@Override
136 135
	public Object clone() throws CloneNotSupportedException{
137 136
		OriginalSourceBase<?> result = (OriginalSourceBase<?>)super.clone();
138
		
139
		//no changes to: idInSource, sourcedObj
137

  
138
		//no changes to: idInSource
140 139
		return result;
141 140
	}
142 141

  
143
	
142

  
144 143
//************************ toString ***************************************/
145 144
	@Override
146 145
	public String toString(){

Also available in: Unified diff