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 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.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * TrkUserAction generated by hbm2java */ @Entity @Table(name="TRK_USER_ACTION" ) public class TrkUserAction implements java.io.Serializable { private BigDecimal id; private TrkAction trkAction; private TrkUserAction trkUserAction; private TrkTool trkTool; private TrkTime trkTime; private TrkPerson trkPerson; private TrkSession trkSession; private TrkPage trkPage; private TrkLearningContext trkLearningContext; private TrkDay trkDay; private String role; private BigDecimal dwellTime; private BigDecimal learningObjectId; private Boolean dupFlag; private Date eventTime; private BigDecimal eventTimeMils; private Set<TrkUserAction> trkUserActions = new HashSet<TrkUserAction>(0); private Set<TrkLearningContext> trkLearningContextsForLastActionId = new HashSet<TrkLearningContext>(0); private Set<TrkPerson> trkPersonsForLastActionId = new HashSet<TrkPerson>(0); private Set<TrkPerson> trkPersonsForFirstActionId = new HashSet<TrkPerson>(0); private Set<TrkLearningContext> trkLearningContextsForFirstActionId = new HashSet<TrkLearningContext>(0); private Set<TrkSessionToolActivity> trkSessionToolActivitiesForLastActionId = new HashSet<TrkSessionToolActivity>(0); private Set<TrkSession> trkSessionsForFirstActionId = new HashSet<TrkSession>(0); private Set<TrkSessionToolActivity> trkSessionToolActivitiesForFirstActionId = new HashSet<TrkSessionToolActivity>(0); private Set<TrkSession> trkSessionsForLastActionId = new HashSet<TrkSession>(0); public TrkUserAction() { } public TrkUserAction(BigDecimal id, TrkAction trkAction, TrkTool trkTool, TrkPerson trkPerson, TrkSession trkSession, String role, Date eventTime, BigDecimal eventTimeMils) { this.id = id; this.trkAction = trkAction; this.trkTool = trkTool; this.trkPerson = trkPerson; this.trkSession = trkSession; this.role = role; this.eventTime = eventTime; this.eventTimeMils = eventTimeMils; } public TrkUserAction(BigDecimal id, TrkAction trkAction, TrkUserAction trkUserAction, TrkTool trkTool, TrkTime trkTime, TrkPerson trkPerson, TrkSession trkSession, TrkPage trkPage, TrkLearningContext trkLearningContext, TrkDay trkDay, String role, BigDecimal dwellTime, BigDecimal learningObjectId, Boolean dupFlag, Date eventTime, BigDecimal eventTimeMils, Set<TrkUserAction> trkUserActions, Set<TrkLearningContext> trkLearningContextsForLastActionId, Set<TrkPerson> trkPersonsForLastActionId, Set<TrkPerson> trkPersonsForFirstActionId, Set<TrkLearningContext> trkLearningContextsForFirstActionId, Set<TrkSessionToolActivity> trkSessionToolActivitiesForLastActionId, Set<TrkSession> trkSessionsForFirstActionId, Set<TrkSessionToolActivity> trkSessionToolActivitiesForFirstActionId, Set<TrkSession> trkSessionsForLastActionId) { this.id = id; this.trkAction = trkAction; this.trkUserAction = trkUserAction; this.trkTool = trkTool; this.trkTime = trkTime; this.trkPerson = trkPerson; this.trkSession = trkSession; this.trkPage = trkPage; this.trkLearningContext = trkLearningContext; this.trkDay = trkDay; this.role = role; this.dwellTime = dwellTime; this.learningObjectId = learningObjectId; this.dupFlag = dupFlag; this.eventTime = eventTime; this.eventTimeMils = eventTimeMils; this.trkUserActions = trkUserActions; this.trkLearningContextsForLastActionId = trkLearningContextsForLastActionId; this.trkPersonsForLastActionId = trkPersonsForLastActionId; this.trkPersonsForFirstActionId = trkPersonsForFirstActionId; this.trkLearningContextsForFirstActionId = trkLearningContextsForFirstActionId; this.trkSessionToolActivitiesForLastActionId = trkSessionToolActivitiesForLastActionId; this.trkSessionsForFirstActionId = trkSessionsForFirstActionId; this.trkSessionToolActivitiesForFirstActionId = trkSessionToolActivitiesForFirstActionId; this.trkSessionsForLastActionId = trkSessionsForLastActionId; } @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="TRK_ACTION_ID", nullable=false) public TrkAction getTrkAction() { return this.trkAction; } public void setTrkAction(TrkAction trkAction) { this.trkAction = trkAction; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TRK_PREVIOUS_ID") public TrkUserAction getTrkUserAction() { return this.trkUserAction; } public void setTrkUserAction(TrkUserAction trkUserAction) { this.trkUserAction = trkUserAction; } @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="MINUTE") public TrkTime getTrkTime() { return this.trkTime; } public void setTrkTime(TrkTime trkTime) { this.trkTime = trkTime; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TRK_PERSON_ID", nullable=false) public TrkPerson getTrkPerson() { return this.trkPerson; } public void setTrkPerson(TrkPerson trkPerson) { this.trkPerson = trkPerson; } @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="TRK_PAGE_ID") public TrkPage getTrkPage() { return this.trkPage; } public void setTrkPage(TrkPage trkPage) { this.trkPage = trkPage; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TRK_LEARNING_CONTEXT_ID") public TrkLearningContext getTrkLearningContext() { return this.trkLearningContext; } public void setTrkLearningContext(TrkLearningContext trkLearningContext) { this.trkLearningContext = trkLearningContext; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TRK_DAY_ID") public TrkDay getTrkDay() { return this.trkDay; } public void setTrkDay(TrkDay trkDay) { this.trkDay = trkDay; } @Column(name="ROLE", nullable=false, length=40) public String getRole() { return this.role; } public void setRole(String role) { this.role = role; } @Column(name="DWELL_TIME", precision=20, scale=0) public BigDecimal getDwellTime() { return this.dwellTime; } public void setDwellTime(BigDecimal dwellTime) { this.dwellTime = dwellTime; } @Column(name="LEARNING_OBJECT_ID", precision=20, scale=0) public BigDecimal getLearningObjectId() { return this.learningObjectId; } public void setLearningObjectId(BigDecimal learningObjectId) { this.learningObjectId = learningObjectId; } @Column(name="DUP_FLAG", precision=1, scale=0) public Boolean getDupFlag() { return this.dupFlag; } public void setDupFlag(Boolean dupFlag) { this.dupFlag = dupFlag; } @Temporal(TemporalType.DATE) @Column(name="EVENT_TIME", nullable=false, length=7) public Date getEventTime() { return this.eventTime; } public void setEventTime(Date eventTime) { this.eventTime = eventTime; } @Column(name="EVENT_TIME_MILS", nullable=false, precision=20, scale=0) public BigDecimal getEventTimeMils() { return this.eventTimeMils; } public void setEventTimeMils(BigDecimal eventTimeMils) { this.eventTimeMils = eventTimeMils; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserAction") public Set<TrkUserAction> getTrkUserActions() { return this.trkUserActions; } public void setTrkUserActions(Set<TrkUserAction> trkUserActions) { this.trkUserActions = trkUserActions; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByLastActionId") public Set<TrkLearningContext> getTrkLearningContextsForLastActionId() { return this.trkLearningContextsForLastActionId; } public void setTrkLearningContextsForLastActionId(Set<TrkLearningContext> trkLearningContextsForLastActionId) { this.trkLearningContextsForLastActionId = trkLearningContextsForLastActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByLastActionId") public Set<TrkPerson> getTrkPersonsForLastActionId() { return this.trkPersonsForLastActionId; } public void setTrkPersonsForLastActionId(Set<TrkPerson> trkPersonsForLastActionId) { this.trkPersonsForLastActionId = trkPersonsForLastActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByFirstActionId") public Set<TrkPerson> getTrkPersonsForFirstActionId() { return this.trkPersonsForFirstActionId; } public void setTrkPersonsForFirstActionId(Set<TrkPerson> trkPersonsForFirstActionId) { this.trkPersonsForFirstActionId = trkPersonsForFirstActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByFirstActionId") public Set<TrkLearningContext> getTrkLearningContextsForFirstActionId() { return this.trkLearningContextsForFirstActionId; } public void setTrkLearningContextsForFirstActionId(Set<TrkLearningContext> trkLearningContextsForFirstActionId) { this.trkLearningContextsForFirstActionId = trkLearningContextsForFirstActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByLastActionId") public Set<TrkSessionToolActivity> getTrkSessionToolActivitiesForLastActionId() { return this.trkSessionToolActivitiesForLastActionId; } public void setTrkSessionToolActivitiesForLastActionId(Set<TrkSessionToolActivity> trkSessionToolActivitiesForLastActionId) { this.trkSessionToolActivitiesForLastActionId = trkSessionToolActivitiesForLastActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByFirstActionId") public Set<TrkSession> getTrkSessionsForFirstActionId() { return this.trkSessionsForFirstActionId; } public void setTrkSessionsForFirstActionId(Set<TrkSession> trkSessionsForFirstActionId) { this.trkSessionsForFirstActionId = trkSessionsForFirstActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByFirstActionId") public Set<TrkSessionToolActivity> getTrkSessionToolActivitiesForFirstActionId() { return this.trkSessionToolActivitiesForFirstActionId; } public void setTrkSessionToolActivitiesForFirstActionId(Set<TrkSessionToolActivity> trkSessionToolActivitiesForFirstActionId) { this.trkSessionToolActivitiesForFirstActionId = trkSessionToolActivitiesForFirstActionId; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkUserActionByLastActionId") public Set<TrkSession> getTrkSessionsForLastActionId() { return this.trkSessionsForLastActionId; } public void setTrkSessionsForLastActionId(Set<TrkSession> trkSessionsForLastActionId) { this.trkSessionsForLastActionId = trkSessionsForLastActionId; } }