sascha@3332: package de.intevation.seddb.model; sascha@3332: // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 sascha@3332: sascha@3332: sascha@3332: import java.math.BigDecimal; sascha@3332: import java.util.Date; sascha@3332: import java.util.HashSet; sascha@3332: import java.util.Set; sascha@3332: import javax.persistence.Column; sascha@3332: import javax.persistence.Entity; sascha@3332: import javax.persistence.FetchType; sascha@3332: import javax.persistence.Id; sascha@3332: import javax.persistence.JoinColumn; sascha@3332: import javax.persistence.ManyToOne; sascha@3332: import javax.persistence.OneToMany; sascha@3332: import javax.persistence.Table; sascha@3332: import javax.persistence.Temporal; sascha@3332: import javax.persistence.TemporalType; sascha@3332: sascha@3332: /** sascha@3332: * Mpeilung generated by hbm2java sascha@3332: */ sascha@3332: @Entity sascha@3332: @Table(name="MPEILUNG" sascha@3332: ,schema="SEDDB" sascha@3332: ) sascha@3332: public class Mpeilung implements java.io.Serializable { sascha@3332: sascha@3332: sascha@3332: private long mpeilungid; sascha@3332: private Station station; sascha@3332: private Date datum; sascha@3332: private BigDecimal km; sascha@3332: private String bemerkung; sascha@3332: private Date lastupdated; sascha@3332: private Long oldapeilid; sascha@3332: private Set mpeilpunkts = new HashSet(0); sascha@3332: sascha@3332: public Mpeilung() { sascha@3332: } sascha@3332: sascha@3332: public Mpeilung(long mpeilungid, Station station, Date datum, BigDecimal km, Date lastupdated) { sascha@3332: this.mpeilungid = mpeilungid; sascha@3332: this.station = station; sascha@3332: this.datum = datum; sascha@3332: this.km = km; sascha@3332: this.lastupdated = lastupdated; sascha@3332: } sascha@3332: public Mpeilung(long mpeilungid, Station station, Date datum, BigDecimal km, String bemerkung, Date lastupdated, Long oldapeilid, Set mpeilpunkts) { sascha@3332: this.mpeilungid = mpeilungid; sascha@3332: this.station = station; sascha@3332: this.datum = datum; sascha@3332: this.km = km; sascha@3332: this.bemerkung = bemerkung; sascha@3332: this.lastupdated = lastupdated; sascha@3332: this.oldapeilid = oldapeilid; sascha@3332: this.mpeilpunkts = mpeilpunkts; sascha@3332: } sascha@3332: sascha@3334: @Id sascha@3334: sascha@3334: sascha@3332: @Column(name="MPEILUNGID", unique=true, nullable=false, precision=11, scale=0) sascha@3332: public long getMpeilungid() { sascha@3332: return this.mpeilungid; sascha@3332: } sascha@3334: sascha@3332: public void setMpeilungid(long mpeilungid) { sascha@3332: this.mpeilungid = mpeilungid; sascha@3332: } sascha@3332: sascha@3332: @ManyToOne(fetch=FetchType.LAZY) sascha@3332: @JoinColumn(name="STATIONID", nullable=false) sascha@3332: public Station getStation() { sascha@3332: return this.station; sascha@3332: } sascha@3334: sascha@3332: public void setStation(Station station) { sascha@3332: this.station = station; sascha@3332: } sascha@3332: sascha@3332: @Temporal(TemporalType.DATE) sascha@3332: @Column(name="DATUM", nullable=false, length=7) sascha@3332: public Date getDatum() { sascha@3332: return this.datum; sascha@3332: } sascha@3334: sascha@3332: public void setDatum(Date datum) { sascha@3332: this.datum = datum; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="KM", nullable=false, precision=8, scale=3) sascha@3332: public BigDecimal getKm() { sascha@3332: return this.km; sascha@3332: } sascha@3334: sascha@3332: public void setKm(BigDecimal km) { sascha@3332: this.km = km; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="BEMERKUNG", length=240) sascha@3332: public String getBemerkung() { sascha@3332: return this.bemerkung; sascha@3332: } sascha@3334: sascha@3332: public void setBemerkung(String bemerkung) { sascha@3332: this.bemerkung = bemerkung; sascha@3332: } sascha@3332: sascha@3332: @Temporal(TemporalType.DATE) sascha@3332: @Column(name="LASTUPDATED", nullable=false, length=7) sascha@3332: public Date getLastupdated() { sascha@3332: return this.lastupdated; sascha@3332: } sascha@3334: sascha@3332: public void setLastupdated(Date lastupdated) { sascha@3332: this.lastupdated = lastupdated; sascha@3332: } sascha@3332: sascha@3334: sascha@3332: @Column(name="OLDAPEILID", precision=11, scale=0) sascha@3332: public Long getOldapeilid() { sascha@3332: return this.oldapeilid; sascha@3332: } sascha@3334: sascha@3332: public void setOldapeilid(Long oldapeilid) { sascha@3332: this.oldapeilid = oldapeilid; sascha@3332: } sascha@3332: sascha@3332: @OneToMany(fetch=FetchType.LAZY, mappedBy="mpeilung") sascha@3332: public Set getMpeilpunkts() { sascha@3332: return this.mpeilpunkts; sascha@3332: } sascha@3334: sascha@3332: public void setMpeilpunkts(Set mpeilpunkts) { sascha@3332: this.mpeilpunkts = mpeilpunkts; sascha@3332: } sascha@3332: }