Project

General

Profile

« Previous | Next » 

Revision 71b9b632

Added by Andreas Müller almost 3 years ago

ref #4311 first implementation for TeamOrPersonBase.collectorTitle

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/agent/Person.java
30 30
import org.hibernate.envers.Audited;
31 31
import org.hibernate.search.annotations.Field;
32 32
import org.hibernate.search.annotations.FieldBridge;
33
import org.hibernate.search.annotations.Index;
33 34
import org.hibernate.search.annotations.IndexedEmbedded;
34 35
import org.springframework.beans.factory.annotation.Configurable;
35 36

  
......
67 68
	    "givenName",
68 69
	    "initials",
69 70
	    "suffix",
71
	    "collectorTitle",
70 72
	    "lifespan",
71 73
	    "orcid",
72 74
	    "institutionalMemberships"
......
81 83
	private static final long serialVersionUID = 4153566493065539763L;
82 84
	public static final Logger logger = Logger.getLogger(Person.class);
83 85

  
86
    //under construction #4311
87
    @XmlElement(name="CollectorTitle")
88
    @Field(index=Index.YES)
89
    @Column(length=255)
90
    private String collectorTitle;
91

  
84 92
    @XmlElement(name = "Prefix")
85 93
    @Field
86 94
  //TODO Val #3379
......
301 309
		this.givenName = isBlank(givenName) ? null : givenName;
302 310
	}
303 311

  
312
	//#4311
313
    public String getCollectorTitle() {
314
        return collectorTitle;
315
    }
316
    public void setCollectorTitle(String collectorTitle) {
317
        this.collectorTitle = collectorTitle;
318
    }
319

  
304 320
    /**
305 321
     * Returns the initials of this person as used in bibliographic
306 322
     * references. Usually these are the first letters of each givenname

Also available in: Unified diff