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.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; /** * AssmtAttemptEvent generated by hbm2java */ @Entity @Table(name="ASSMT_ATTEMPT_EVENT" ) public class AssmtAttemptEvent implements java.io.Serializable { private BigDecimal id; private AssmtAttemptItem assmtAttemptItem; private AssmtAttempt assmtAttempt; private String eventKey; private BigDecimal eventDate; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Set<AssmtResponse> assmtResponses = new HashSet<AssmtResponse>(0); public AssmtAttemptEvent() { } public AssmtAttemptEvent(BigDecimal id, String eventKey, BigDecimal eventDate, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.eventKey = eventKey; this.eventDate = eventDate; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public AssmtAttemptEvent(BigDecimal id, AssmtAttemptItem assmtAttemptItem, AssmtAttempt assmtAttempt, String eventKey, BigDecimal eventDate, BigDecimal createTs, BigDecimal lastmodifyTs, Set<AssmtResponse> assmtResponses) { this.id = id; this.assmtAttemptItem = assmtAttemptItem; this.assmtAttempt = assmtAttempt; this.eventKey = eventKey; this.eventDate = eventDate; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.assmtResponses = assmtResponses; } @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="ATTEMPT_ITEM_ID") public AssmtAttemptItem getAssmtAttemptItem() { return this.assmtAttemptItem; } public void setAssmtAttemptItem(AssmtAttemptItem assmtAttemptItem) { this.assmtAttemptItem = assmtAttemptItem; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="ATTEMPT_ID") public AssmtAttempt getAssmtAttempt() { return this.assmtAttempt; } public void setAssmtAttempt(AssmtAttempt assmtAttempt) { this.assmtAttempt = assmtAttempt; } @Column(name="EVENT_KEY", nullable=false, length=128) public String getEventKey() { return this.eventKey; } public void setEventKey(String eventKey) { this.eventKey = eventKey; } @Column(name="EVENT_DATE", nullable=false, precision=20, scale=0) public BigDecimal getEventDate() { return this.eventDate; } public void setEventDate(BigDecimal eventDate) { this.eventDate = eventDate; } @Column(name="CREATE_TS", nullable=false, precision=20, scale=0) public BigDecimal getCreateTs() { return this.createTs; } public void setCreateTs(BigDecimal createTs) { this.createTs = createTs; } @Column(name="LASTMODIFY_TS", nullable=false, precision=20, scale=0) public BigDecimal getLastmodifyTs() { return this.lastmodifyTs; } public void setLastmodifyTs(BigDecimal lastmodifyTs) { this.lastmodifyTs = lastmodifyTs; } @OneToMany(fetch=FetchType.LAZY, mappedBy="assmtAttemptEvent") public Set<AssmtResponse> getAssmtResponses() { return this.assmtResponses; } public void setAssmtResponses(Set<AssmtResponse> assmtResponses) { this.assmtResponses = assmtResponses; } }