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.reference;
|
11
|
|
12
|
import javax.persistence.Entity;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
import org.hibernate.envers.Audited;
|
16
|
import org.springframework.beans.factory.annotation.Configurable;
|
17
|
|
18
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
19
|
|
20
|
/**
|
21
|
* A publisher is part of any reference inheriting from PublicationBase.
|
22
|
* A publication can have several publishers each of them having it's own publication place.
|
23
|
* The UML association type is composition, which means that a publisher exists only as part of a publication base, not on its own. Therefore
|
24
|
* all the methods of publisher are not visible but handled by publication base.
|
25
|
*
|
26
|
* @author a.mueller
|
27
|
* @created 23.03.2009
|
28
|
* @version 1.0
|
29
|
*/
|
30
|
@Entity
|
31
|
@Audited
|
32
|
@Configurable
|
33
|
public class Publisher extends CdmBase implements Cloneable{
|
34
|
@SuppressWarnings("unused")
|
35
|
private static Logger logger = Logger.getLogger(Publisher.class);
|
36
|
|
37
|
|
38
|
private String publisherName;
|
39
|
|
40
|
private String place;
|
41
|
|
42
|
protected Publisher(){
|
43
|
|
44
|
}
|
45
|
protected Publisher(String publisherName, String place){
|
46
|
this.publisherName = publisherName;
|
47
|
this.place = place;
|
48
|
}
|
49
|
|
50
|
|
51
|
/**
|
52
|
* @return the publisher
|
53
|
*/
|
54
|
public String getPublisherName() {
|
55
|
return publisherName;
|
56
|
}
|
57
|
|
58
|
/**
|
59
|
* @param publisher the publisher to set
|
60
|
*/
|
61
|
public void setPublisherName(String publisherName) {
|
62
|
this.publisherName = publisherName;
|
63
|
}
|
64
|
|
65
|
/**
|
66
|
* @return the place
|
67
|
*/
|
68
|
public String getPlace() {
|
69
|
return place;
|
70
|
}
|
71
|
|
72
|
/**
|
73
|
* @param place the place to set
|
74
|
*/
|
75
|
public void setPlace(String place) {
|
76
|
this.place = place;
|
77
|
}
|
78
|
|
79
|
}
|