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/AnnotatableEntity.java
77 77
	@Override
78 78
    public void addMarker(Marker marker){
79 79
		if (marker != null){
80
			marker.setMarkedObj(this);
81 80
			getMarkers().add(marker);
82 81
		}
83 82
	}
......
85 84
    public void removeMarker(Marker marker){
86 85
		if(getMarkers().contains(marker)) {
87 86
			getMarkers().remove(marker);
88
		    marker.setMarkedObj(null);
89 87
		}
90 88
	}
91 89

  
......
115 113
	@Override
116 114
    public void addAnnotation(Annotation annotation){
117 115
		if (annotation != null){
118
			annotation.setAnnotatedObj(this);
119 116
			getAnnotations().add(annotation);
120 117
		}
121 118
	}
......
124 121
    public void removeAnnotation(Annotation annotation){
125 122
		if(getAnnotations().contains(annotation)) {
126 123
			getAnnotations().remove(annotation);
127
		    annotation.setAnnotatedObj(null);
128 124
		}
129 125
	}
130 126

  

Also available in: Unified diff