Revision f5b66699
Added by Patrick Plitzner over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceContigFileCollectionDetailSection.java | ||
---|---|---|
72 | 72 |
getEntity().setContigFile(element); |
73 | 73 |
/* |
74 | 74 |
* merge to avoid duplicate key exception |
75 |
* the exception seems to be caused by the two links to the Media object:
|
|
75 |
* the exception seems to be caused by the two links to the Media object: |
|
76 | 76 |
* - Sequence->contigFile (used to be not in the cache after saving) |
77 | 77 |
* - MediaRepresentationPart->media |
78 | 78 |
* Invoking merge() solves this problem |
... | ... | |
104 | 104 |
protected String getTooltipString() { |
105 | 105 |
return "Add a contig file"; |
106 | 106 |
} |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
/** |
|
111 |
* {@inheritDoc} |
|
112 |
*/ |
|
113 |
@Override |
|
114 |
public Media addExisting() { |
|
115 |
return null; |
|
116 |
} |
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
/** |
|
121 |
* {@inheritDoc} |
|
122 |
*/ |
|
123 |
@Override |
|
124 |
public boolean allowAddExisting() { |
|
125 |
return false; |
|
126 |
} |
|
107 | 127 |
} |
Also available in: Unified diff
ref #6333 Add generic support for entity collection sections to allow
adding existing entities