Subversion Repositories WebE

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21 moos 1
package ch.ffhs.webE.domain;
2
 
3
// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1
4
 
5
import java.util.HashSet;
6
import java.util.Set;
7
import javax.persistence.Column;
8
import javax.persistence.Entity;
9
import javax.persistence.FetchType;
10
import javax.persistence.GeneratedValue;
11
import static javax.persistence.GenerationType.IDENTITY;
12
import javax.persistence.Id;
13
import javax.persistence.OneToMany;
14
import javax.persistence.Table;
15
 
16
/**
17
 * ActionType generated by hbm2java
18
 */
19
@Entity
20
@Table(name = "action_type", catalog = "webengineering")
21
public class ActionType implements java.io.Serializable {
22
 
23
        private Integer id;
24
        private String name;
25
        private Set<History> histories = new HashSet<History>(0);
26
 
27
        public ActionType() {
28
        }
29
 
30
        public ActionType(String name, Set<History> histories) {
31
                this.name = name;
32
                this.histories = histories;
33
        }
34
 
35
        @Id
36
        @GeneratedValue(strategy = IDENTITY)
37
        @Column(name = "id", unique = true, nullable = false)
38
        public Integer getId() {
39
                return this.id;
40
        }
41
 
42
        public void setId(Integer id) {
43
                this.id = id;
44
        }
45
 
46
        @Column(name = "name", length = 45)
47
        public String getName() {
48
                return this.name;
49
        }
50
 
51
        public void setName(String name) {
52
                this.name = name;
53
        }
54
 
55
        @OneToMany(fetch = FetchType.LAZY, mappedBy = "actionType")
56
        public Set<History> getHistories() {
57
                return this.histories;
58
        }
59
 
60
        public void setHistories(Set<History> histories) {
61
                this.histories = histories;
62
        }
63
 
64
}