package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; /** * TrkTool generated by hbm2java */ @Entity @Table(name="TRK_TOOL" ) public class TrkTool implements java.io.Serializable { private BigDecimal id; private String name; private boolean excluded; private Set<TrkSessionToolActivity> trkSessionToolActivities = new HashSet<TrkSessionToolActivity>(0); private Set<TrkUserAction> trkUserActions = new HashSet<TrkUserAction>(0); public TrkTool() { } public TrkTool(BigDecimal id, String name, boolean excluded) { this.id = id; this.name = name; this.excluded = excluded; } public TrkTool(BigDecimal id, String name, boolean excluded, Set<TrkSessionToolActivity> trkSessionToolActivities, Set<TrkUserAction> trkUserActions) { this.id = id; this.name = name; this.excluded = excluded; this.trkSessionToolActivities = trkSessionToolActivities; this.trkUserActions = trkUserActions; } @Id @Column(name="ID", nullable=false, precision=20, scale=0) public BigDecimal getId() { return this.id; } public void setId(BigDecimal id) { this.id = id; } @Column(name="NAME", unique=true, nullable=false, length=40) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name="EXCLUDED", nullable=false, precision=1, scale=0) public boolean isExcluded() { return this.excluded; } public void setExcluded(boolean excluded) { this.excluded = excluded; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkTool") public Set<TrkSessionToolActivity> getTrkSessionToolActivities() { return this.trkSessionToolActivities; } public void setTrkSessionToolActivities(Set<TrkSessionToolActivity> trkSessionToolActivities) { this.trkSessionToolActivities = trkSessionToolActivities; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkTool") public Set<TrkUserAction> getTrkUserActions() { return this.trkUserActions; } public void setTrkUserActions(Set<TrkUserAction> trkUserActions) { this.trkUserActions = trkUserActions; } }