1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.common;
|
11
|
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
import javax.persistence.*;
|
15
|
|
16
|
/**
|
17
|
* Other names/labels/titles (abreviated or not) for the same object (person,
|
18
|
* reference, source, etc.)
|
19
|
* @author m.doering
|
20
|
* @version 1.0
|
21
|
* @created 08-Nov-2007 13:06:22
|
22
|
*/
|
23
|
|
24
|
@Entity
|
25
|
public class OriginalSource extends ReferencedEntityBase {
|
26
|
static Logger logger = Logger.getLogger(OriginalSource.class);
|
27
|
//The object's ID in the source, where the alternative string comes from
|
28
|
private String idInSource;
|
29
|
private IdentifiableEntity sourcedObj;
|
30
|
|
31
|
/**
|
32
|
* Factory method
|
33
|
* @return
|
34
|
*/
|
35
|
public static OriginalSource NewInstance(){
|
36
|
return new OriginalSource();
|
37
|
}
|
38
|
|
39
|
|
40
|
/**
|
41
|
* Constructor
|
42
|
*/
|
43
|
public OriginalSource(){
|
44
|
super();
|
45
|
}
|
46
|
|
47
|
public String getIdInSource(){
|
48
|
return this.idInSource;
|
49
|
}
|
50
|
public void setIdInSource(String idInSource){
|
51
|
this.idInSource = idInSource;
|
52
|
}
|
53
|
|
54
|
@Transient
|
55
|
public IdentifiableEntity getSourcedObj() {
|
56
|
return sourcedObj;
|
57
|
}
|
58
|
public void setSourcedObj(IdentifiableEntity sourcedObj) {
|
59
|
this.sourcedObj = sourcedObj;
|
60
|
}
|
61
|
|
62
|
}
|