view backend/src/main/java/de/intevation/seddb/model/SlotlinksId.java @ 5844:4dd33b86dc61

Added header to river backend.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 26 Apr 2013 08:25:41 +0200
parents 5aa05a7a34b7
children
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU AGPL (>=v3) 
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details. 
 */

package org.dive4elements.seddb.model;
// Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * SlotlinksId generated by hbm2java
 */
@Embeddable
public class SlotlinksId  implements java.io.Serializable {


     private long slotrechteid;
     private long messungid;
     private BigDecimal uferabst;
     private BigDecimal tsand;
     private BigDecimal tschweb;
     private BigDecimal fv;
     private BigDecimal vm;
     private BigDecimal tiefe;
     private BigDecimal vsohle;
     private String bemerkung;
     private BigDecimal uferablinks;
     private BigDecimal linksabst;

    public SlotlinksId() {
    }

    public SlotlinksId(long slotrechteid, long messungid, BigDecimal uferabst) {
        this.slotrechteid = slotrechteid;
        this.messungid = messungid;
        this.uferabst = uferabst;
    }
    public SlotlinksId(long slotrechteid, long messungid, BigDecimal uferabst, BigDecimal tsand, BigDecimal tschweb, BigDecimal fv, BigDecimal vm, BigDecimal tiefe, BigDecimal vsohle, String bemerkung, BigDecimal uferablinks, BigDecimal linksabst) {
       this.slotrechteid = slotrechteid;
       this.messungid = messungid;
       this.uferabst = uferabst;
       this.tsand = tsand;
       this.tschweb = tschweb;
       this.fv = fv;
       this.vm = vm;
       this.tiefe = tiefe;
       this.vsohle = vsohle;
       this.bemerkung = bemerkung;
       this.uferablinks = uferablinks;
       this.linksabst = linksabst;
    }



    @Column(name="SLOTRECHTEID", nullable=false, precision=11, scale=0)
    public long getSlotrechteid() {
        return this.slotrechteid;
    }

    public void setSlotrechteid(long slotrechteid) {
        this.slotrechteid = slotrechteid;
    }


    @Column(name="MESSUNGID", nullable=false, precision=11, scale=0)
    public long getMessungid() {
        return this.messungid;
    }

    public void setMessungid(long messungid) {
        this.messungid = messungid;
    }


    @Column(name="UFERABST", nullable=false, precision=8, scale=3)
    public BigDecimal getUferabst() {
        return this.uferabst;
    }

    public void setUferabst(BigDecimal uferabst) {
        this.uferabst = uferabst;
    }


    @Column(name="TSAND", precision=8, scale=3)
    public BigDecimal getTsand() {
        return this.tsand;
    }

    public void setTsand(BigDecimal tsand) {
        this.tsand = tsand;
    }


    @Column(name="TSCHWEB", precision=8, scale=3)
    public BigDecimal getTschweb() {
        return this.tschweb;
    }

    public void setTschweb(BigDecimal tschweb) {
        this.tschweb = tschweb;
    }


    @Column(name="FV", precision=6, scale=3)
    public BigDecimal getFv() {
        return this.fv;
    }

    public void setFv(BigDecimal fv) {
        this.fv = fv;
    }


    @Column(name="VM", precision=6, scale=4)
    public BigDecimal getVm() {
        return this.vm;
    }

    public void setVm(BigDecimal vm) {
        this.vm = vm;
    }


    @Column(name="TIEFE", precision=8, scale=3)
    public BigDecimal getTiefe() {
        return this.tiefe;
    }

    public void setTiefe(BigDecimal tiefe) {
        this.tiefe = tiefe;
    }


    @Column(name="VSOHLE", precision=6, scale=4)
    public BigDecimal getVsohle() {
        return this.vsohle;
    }

    public void setVsohle(BigDecimal vsohle) {
        this.vsohle = vsohle;
    }


    @Column(name="BEMERKUNG", length=240)
    public String getBemerkung() {
        return this.bemerkung;
    }

    public void setBemerkung(String bemerkung) {
        this.bemerkung = bemerkung;
    }


    @Column(name="UFERABLINKS", precision=8, scale=3)
    public BigDecimal getUferablinks() {
        return this.uferablinks;
    }

    public void setUferablinks(BigDecimal uferablinks) {
        this.uferablinks = uferablinks;
    }


    @Column(name="LINKSABST", precision=22, scale=0)
    public BigDecimal getLinksabst() {
        return this.linksabst;
    }

    public void setLinksabst(BigDecimal linksabst) {
        this.linksabst = linksabst;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof SlotlinksId) ) return false;
		 SlotlinksId castOther = ( SlotlinksId ) other;

		 return (this.getSlotrechteid()==castOther.getSlotrechteid())
 && (this.getMessungid()==castOther.getMessungid())
 && ( (this.getUferabst()==castOther.getUferabst()) || ( this.getUferabst()!=null && castOther.getUferabst()!=null && this.getUferabst().equals(castOther.getUferabst()) ) )
 && ( (this.getTsand()==castOther.getTsand()) || ( this.getTsand()!=null && castOther.getTsand()!=null && this.getTsand().equals(castOther.getTsand()) ) )
 && ( (this.getTschweb()==castOther.getTschweb()) || ( this.getTschweb()!=null && castOther.getTschweb()!=null && this.getTschweb().equals(castOther.getTschweb()) ) )
 && ( (this.getFv()==castOther.getFv()) || ( this.getFv()!=null && castOther.getFv()!=null && this.getFv().equals(castOther.getFv()) ) )
 && ( (this.getVm()==castOther.getVm()) || ( this.getVm()!=null && castOther.getVm()!=null && this.getVm().equals(castOther.getVm()) ) )
 && ( (this.getTiefe()==castOther.getTiefe()) || ( this.getTiefe()!=null && castOther.getTiefe()!=null && this.getTiefe().equals(castOther.getTiefe()) ) )
 && ( (this.getVsohle()==castOther.getVsohle()) || ( this.getVsohle()!=null && castOther.getVsohle()!=null && this.getVsohle().equals(castOther.getVsohle()) ) )
 && ( (this.getBemerkung()==castOther.getBemerkung()) || ( this.getBemerkung()!=null && castOther.getBemerkung()!=null && this.getBemerkung().equals(castOther.getBemerkung()) ) )
 && ( (this.getUferablinks()==castOther.getUferablinks()) || ( this.getUferablinks()!=null && castOther.getUferablinks()!=null && this.getUferablinks().equals(castOther.getUferablinks()) ) )
 && ( (this.getLinksabst()==castOther.getLinksabst()) || ( this.getLinksabst()!=null && castOther.getLinksabst()!=null && this.getLinksabst().equals(castOther.getLinksabst()) ) );
   }

   public int hashCode() {
         int result = 17;

         result = 37 * result + (int) this.getSlotrechteid();
         result = 37 * result + (int) this.getMessungid();
         result = 37 * result + ( getUferabst() == null ? 0 : this.getUferabst().hashCode() );
         result = 37 * result + ( getTsand() == null ? 0 : this.getTsand().hashCode() );
         result = 37 * result + ( getTschweb() == null ? 0 : this.getTschweb().hashCode() );
         result = 37 * result + ( getFv() == null ? 0 : this.getFv().hashCode() );
         result = 37 * result + ( getVm() == null ? 0 : this.getVm().hashCode() );
         result = 37 * result + ( getTiefe() == null ? 0 : this.getTiefe().hashCode() );
         result = 37 * result + ( getVsohle() == null ? 0 : this.getVsohle().hashCode() );
         result = 37 * result + ( getBemerkung() == null ? 0 : this.getBemerkung().hashCode() );
         result = 37 * result + ( getUferablinks() == null ? 0 : this.getUferablinks().hashCode() );
         result = 37 * result + ( getLinksabst() == null ? 0 : this.getLinksabst().hashCode() );
         return result;
   }
}

http://dive4elements.wald.intevation.org