package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 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; /** * TrkTime generated by hbm2java */ @Entity @Table(name="TRK_TIME" ) public class TrkTime implements java.io.Serializable { private long minute; private boolean inClass; private long hourOfDay; private Set<TrkUserAction> trkUserActions = new HashSet<TrkUserAction>(0); public TrkTime() { } public TrkTime(long minute, boolean inClass, long hourOfDay) { this.minute = minute; this.inClass = inClass; this.hourOfDay = hourOfDay; } public TrkTime(long minute, boolean inClass, long hourOfDay, Set<TrkUserAction> trkUserActions) { this.minute = minute; this.inClass = inClass; this.hourOfDay = hourOfDay; this.trkUserActions = trkUserActions; } @Id @Column(name="MINUTE", nullable=false, precision=15, scale=0) public long getMinute() { return this.minute; } public void setMinute(long minute) { this.minute = minute; } @Column(name="IN_CLASS", nullable=false, precision=1, scale=0) public boolean isInClass() { return this.inClass; } public void setInClass(boolean inClass) { this.inClass = inClass; } @Column(name="HOUR_OF_DAY", nullable=false, precision=15, scale=0) public long getHourOfDay() { return this.hourOfDay; } public void setHourOfDay(long hourOfDay) { this.hourOfDay = hourOfDay; } @OneToMany(fetch=FetchType.LAZY, mappedBy="trkTime") public Set<TrkUserAction> getTrkUserActions() { return this.trkUserActions; } public void setTrkUserActions(Set<TrkUserAction> trkUserActions) { this.trkUserActions = trkUserActions; } }