package ch.ffhs.webE.domain; // Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; /** * ActionType generated by hbm2java */ @Entity @Table(name = "action_type", catalog = "webengineering") public class ActionType implements java.io.Serializable { private Integer id; private String name; private Set histories = new HashSet(0); public ActionType() { } public ActionType(String name, Set histories) { this.name = name; this.histories = histories; } @Id @GeneratedValue(strategy = IDENTITY) @Column(name = "id", unique = true, nullable = false) public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; } @Column(name = "name", length = 45) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @OneToMany(fetch = FetchType.LAZY, mappedBy = "actionType") public Set getHistories() { return this.histories; } public void setHistories(Set histories) { this.histories = histories; } }