Project

General

Profile

Revision a78fdbaf

IDa78fdbafcc7640aee4cdb8a2df1d984b51536dca
Parent f33125f8
Child b4262d8b

Added by Patrick Plitzner almost 2 years ago

ref #8011 Make entity reference Serializable

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/ref/EntityReference.java
8 8
*/
9 9
package eu.etaxonomy.cdm.ref;
10 10

  
11
import java.io.Serializable;
11 12
import java.util.UUID;
12 13

  
13 14
import org.apache.commons.lang.builder.HashCodeBuilder;
......
15 16
/**
16 17
 * @author a.kohlbecker
17 18
 */
18
public class EntityReference {
19
public class EntityReference implements Serializable{
20

  
21
    private static final long serialVersionUID = -8173845668898512626L;
22

  
19 23
    UUID uuid;
20 24
    String label;
21 25

  
cdmlib-model/src/main/java/eu/etaxonomy/cdm/ref/TypedEntityReference.java
19 19
 */
20 20
public class TypedEntityReference<T> extends EntityReference {
21 21

  
22
    private static final long serialVersionUID = -4619590272174606288L;
22 23

  
23 24
    private Class<T> type;
24 25

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DNASampleDTO.java
25 25
 */
26 26
public class DNASampleDTO extends PreservedSpecimenDTO{
27 27

  
28
    private static final long serialVersionUID = -1050277075084265067L;
29

  
28 30
    private Set<SequenceDTO> sequences = new HashSet<SequenceDTO>();
29 31

  
30 32
    private Set<AmplificationResult> amplificationResults = new HashSet<AmplificationResult>();
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DerivateDTO.java
39 39
 */
40 40
public abstract class DerivateDTO extends TypedEntityReference{
41 41

  
42
    private static final long serialVersionUID = -7597690654462090732L;
43

  
42 44
    private TreeSet<Pair<String, String>> characterData;
43 45
    private DerivateDataDTO derivateDataDTO;
44 46
    protected String taxonName;
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/FieldUnitDTO.java
9 9

  
10 10

  
11 11
public class FieldUnitDTO extends DerivateDTO{
12

  
13
    private static final long serialVersionUID = 3981843956067273220L;
14

  
12 15
    //Row Attributes
13 16
	private String country;
14 17
	private String collectionString;
......
53 56
    /**
54 57
     * @return the collectionString
55 58
     */
59
    @Override
56 60
    public String getCollection() {
57 61
        return collectionString;
58 62
    }
59 63
    /**
60 64
     * @param collectionString the collectionString to set
61 65
     */
66
    @Override
62 67
    public void setCollection(String collection) {
63 68
        this.collectionString = collection;
64 69
    }
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/MediaDTO.java
20 20
 */
21 21
public class MediaDTO extends TypedEntityReference<Media> {
22 22

  
23
    private static final long serialVersionUID = 1981292478312137355L;
24

  
23 25
    private String uri;
24 26

  
25 27
    private String title_l10n;
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/PreservedSpecimenDTO.java
30 30
 */
31 31
public class PreservedSpecimenDTO extends DerivateDTO{
32 32

  
33
    private static final long serialVersionUID = 2345864166579381295L;
34

  
33 35
    private String accessionNumber;
34 36
    private URI preferredStableUri;
35 37

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)