View Javadoc

1   package de.tivsource.page.entity.exhibition;
2   
3   import java.util.Date;
4   
5   import javax.persistence.Entity;
6   import javax.persistence.EnumType;
7   import javax.persistence.Enumerated;
8   import javax.persistence.Temporal;
9   
10  import org.hibernate.envers.Audited;
11  
12  import de.tivsource.page.entity.enumeration.CityType;
13  import de.tivsource.page.entity.enumeration.CountryType;
14  import de.tivsource.page.entity.namingitem.NamingItem;
15  
16  /**
17   * Austellungen
18   * 
19   * Atribute: id, name, beschreibung, beginn, ende, ort, zeitpunkt, 
20   * 
21   * 
22   * @author Marc Michele
23   *
24   */
25  @Audited
26  @Entity
27  public class Exhibition extends NamingItem {
28  
29  	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
30  	private Date moment;
31  
32  	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
33  	private Date start;
34  
35  	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
36  	private Date end;
37  
38  	@Enumerated(EnumType.STRING)
39  	private CityType place;
40  	
41  	@Enumerated(EnumType.STRING)
42  	private CountryType country;
43  
44  	private String thumbnail;
45  	
46  	public Exhibition() {
47  		super();
48  	}
49  
50  	public Date getMoment() {
51  		return moment;
52  	}
53  
54  	public void setMoment(Date moment) {
55  		this.moment = moment;
56  	}
57  
58  	public Date getStart() {
59  		return start;
60  	}
61  
62  	public void setStart(Date start) {
63  		this.start = start;
64  	}
65  
66  	public Date getEnd() {
67  		return end;
68  	}
69  
70  	public void setEnd(Date end) {
71  		this.end = end;
72  	}
73  
74  	public CityType getPlace() {
75  		return place;
76  	}
77  
78  	public void setPlace(CityType place) {
79  		this.place = place;
80  	}
81  
82  	public CountryType getCountry() {
83  		return country;
84  	}
85  
86  	public void setCountry(CountryType country) {
87  		this.country = country;
88  	}
89  
90  	public String getThumbnail() {
91  		return thumbnail;
92  	}
93  
94  	public void setThumbnail(String thumbnail) {
95  		this.thumbnail = thumbnail;
96  	}
97  
98  }// Ende class