package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * TrkSessionToolActivity generated by hbm2java */ @Entity @Table(name="TRK_SESSION_TOOL_ACTIVITY" ) public class TrkSessionToolActivity implements java.io.Serializable { private BigDecimal id; private TrkUserAction trkUserActionByLastActionId; private TrkTool trkTool; private TrkSession trkSession; private TrkUserAction trkUserActionByFirstActionId; private boolean firstActionDemoUser; private String firstActionRole; private Date firstActionEventTime; private BigDecimal firstActionLcId; private Date lastActionEventTime; private BigDecimal lastActionDwellTime; public TrkSessionToolActivity() { } public TrkSessionToolActivity(BigDecimal id, TrkTool trkTool, TrkSession trkSession, boolean firstActionDemoUser, String firstActionRole, Date firstActionEventTime, Date lastActionEventTime, BigDecimal lastActionDwellTime) { this.id = id; this.trkTool = trkTool; this.trkSession = trkSession; this.firstActionDemoUser = firstActionDemoUser; this.firstActionRole = firstActionRole; this.firstActionEventTime = firstActionEventTime; this.lastActionEventTime = lastActionEventTime; this.lastActionDwellTime = lastActionDwellTime; } public TrkSessionToolActivity(BigDecimal id, TrkUserAction trkUserActionByLastActionId, TrkTool trkTool, TrkSession trkSession, TrkUserAction trkUserActionByFirstActionId, boolean firstActionDemoUser, String firstActionRole, Date firstActionEventTime, BigDecimal firstActionLcId, Date lastActionEventTime, BigDecimal lastActionDwellTime) { this.id = id; this.trkUserActionByLastActionId = trkUserActionByLastActionId; this.trkTool = trkTool; this.trkSession = trkSession; this.trkUserActionByFirstActionId = trkUserActionByFirstActionId; this.firstActionDemoUser = firstActionDemoUser; this.firstActionRole = firstActionRole; this.firstActionEventTime = firstActionEventTime; this.firstActionLcId = firstActionLcId; this.lastActionEventTime = lastActionEventTime; this.lastActionDwellTime = lastActionDwellTime; } @Id @Column(name="ID", nullable=false, precision=20, scale=0) public BigDecimal getId() { return this.id; } public void setId(BigDecimal id) { this.id = id; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="LAST_ACTION_ID") public TrkUserAction getTrkUserActionByLastActionId() { return this.trkUserActionByLastActionId; } public void setTrkUserActionByLastActionId(TrkUserAction trkUserActionByLastActionId) { this.trkUserActionByLastActionId = trkUserActionByLastActionId; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TRK_TOOL_ID", nullable=false) public TrkTool getTrkTool() { return this.trkTool; } public void setTrkTool(TrkTool trkTool) { this.trkTool = trkTool; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TRK_SESSION_ID", nullable=false) public TrkSession getTrkSession() { return this.trkSession; } public void setTrkSession(TrkSession trkSession) { this.trkSession = trkSession; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="FIRST_ACTION_ID") public TrkUserAction getTrkUserActionByFirstActionId() { return this.trkUserActionByFirstActionId; } public void setTrkUserActionByFirstActionId(TrkUserAction trkUserActionByFirstActionId) { this.trkUserActionByFirstActionId = trkUserActionByFirstActionId; } @Column(name="FIRST_ACTION_DEMO_USER", nullable=false, precision=1, scale=0) public boolean isFirstActionDemoUser() { return this.firstActionDemoUser; } public void setFirstActionDemoUser(boolean firstActionDemoUser) { this.firstActionDemoUser = firstActionDemoUser; } @Column(name="FIRST_ACTION_ROLE", nullable=false, length=40) public String getFirstActionRole() { return this.firstActionRole; } public void setFirstActionRole(String firstActionRole) { this.firstActionRole = firstActionRole; } @Temporal(TemporalType.DATE) @Column(name="FIRST_ACTION_EVENT_TIME", nullable=false, length=7) public Date getFirstActionEventTime() { return this.firstActionEventTime; } public void setFirstActionEventTime(Date firstActionEventTime) { this.firstActionEventTime = firstActionEventTime; } @Column(name="FIRST_ACTION_LC_ID", precision=20, scale=0) public BigDecimal getFirstActionLcId() { return this.firstActionLcId; } public void setFirstActionLcId(BigDecimal firstActionLcId) { this.firstActionLcId = firstActionLcId; } @Temporal(TemporalType.DATE) @Column(name="LAST_ACTION_EVENT_TIME", nullable=false, length=7) public Date getLastActionEventTime() { return this.lastActionEventTime; } public void setLastActionEventTime(Date lastActionEventTime) { this.lastActionEventTime = lastActionEventTime; } @Column(name="LAST_ACTION_DWELL_TIME", nullable=false, precision=20, scale=0) public BigDecimal getLastActionDwellTime() { return this.lastActionDwellTime; } public void setLastActionDwellTime(BigDecimal lastActionDwellTime) { this.lastActionDwellTime = lastActionDwellTime; } }