view flys-backend/src/main/java/de/intevation/seddb/model/Ssiebungsieb.java @ 5509:627584bc0586

Datacage: Added <dc:filter> element. This allows cleaner way to narrow the datasets. Example: <dc:context> <dc:statement> SELECT DISTINCT name AS hws_name, official AS hws_official, kind_id AS hws_kind FROM hws_lines WHERE river_id = ${river_id} </dc:statement> <dc:if test="dc:has-result()"> <lines> <dc:macro name="hws-lines"> <dc:elements> <hws factory="hwsfactory" name="{$hws_name}"/> </dc:elements> </dc:macro> <dc:filter expr="$hws_official=1"> <dc:if test="dc:has-result()"> <official> <dc:filter expr="$hws_kind=1"> <dc:if test="dc:has-result()"> <Durchlass><dc:call-macro name="hws-lines"></Durchlass> </dc:if> </dc:filter> <dc:filter expr="$hws_kind=2"> <dc:if test="dc:has-result()"> <Damm><dc:call-macro name="hws-lines"></Damm> </dc:if> </dc:filter> <dc:filter expr="$hws_kind=3"> <dc:if test="dc:has-result()"> <Graben><dc:call-macro name="hws-lines"></Graben> </dc:if> </dc:filter> </official> </dc:if> </dc:filter> </lines> </dc:if> </dc:context>
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 28 Mar 2013 16:51:15 +0100
parents 2ae732e2c65c
children 18619c1e7c2a
line wrap: on
line source
package de.intevation.seddb.model;
// Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1


import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Ssiebungsieb generated by hbm2java
 */
@Entity
@Table(name="SSIEBUNGSIEB"
    ,schema="SEDDB"
)
public class Ssiebungsieb  implements java.io.Serializable {


     private SsiebungsiebId id;

    public Ssiebungsieb() {
    }

    public Ssiebungsieb(SsiebungsiebId id) {
       this.id = id;
    }

     @EmbeddedId


    @AttributeOverrides( {
        @AttributeOverride(name="siebanalyseid", column=@Column(name="SIEBANALYSEID", nullable=false, precision=11, scale=0) ),
        @AttributeOverride(name="gsiebsatzid", column=@Column(name="GSIEBSATZID", nullable=false, precision=11, scale=0) ),
        @AttributeOverride(name="gmasse", column=@Column(name="GMASSE", precision=9, scale=3) ),
        @AttributeOverride(name="masche01", column=@Column(name="MASCHE01", precision=7, scale=4) ),
        @AttributeOverride(name="rueck01", column=@Column(name="RUECK01", precision=9, scale=3) ),
        @AttributeOverride(name="masche02", column=@Column(name="MASCHE02", precision=7, scale=4) ),
        @AttributeOverride(name="rueck02", column=@Column(name="RUECK02", precision=9, scale=3) ),
        @AttributeOverride(name="masche03", column=@Column(name="MASCHE03", precision=7, scale=4) ),
        @AttributeOverride(name="rueck03", column=@Column(name="RUECK03", precision=9, scale=3) ),
        @AttributeOverride(name="masche04", column=@Column(name="MASCHE04", precision=7, scale=4) ),
        @AttributeOverride(name="rueck04", column=@Column(name="RUECK04", precision=9, scale=3) ),
        @AttributeOverride(name="masche05", column=@Column(name="MASCHE05", precision=7, scale=4) ),
        @AttributeOverride(name="rueck05", column=@Column(name="RUECK05", precision=9, scale=3) ),
        @AttributeOverride(name="masche06", column=@Column(name="MASCHE06", precision=7, scale=4) ),
        @AttributeOverride(name="rueck06", column=@Column(name="RUECK06", precision=9, scale=3) ),
        @AttributeOverride(name="masche07", column=@Column(name="MASCHE07", precision=7, scale=4) ),
        @AttributeOverride(name="rueck07", column=@Column(name="RUECK07", precision=9, scale=3) ),
        @AttributeOverride(name="masche08", column=@Column(name="MASCHE08", precision=7, scale=4) ),
        @AttributeOverride(name="rueck08", column=@Column(name="RUECK08", precision=9, scale=3) ),
        @AttributeOverride(name="masche09", column=@Column(name="MASCHE09", precision=7, scale=4) ),
        @AttributeOverride(name="rueck09", column=@Column(name="RUECK09", precision=9, scale=3) ),
        @AttributeOverride(name="masche10", column=@Column(name="MASCHE10", precision=7, scale=4) ),
        @AttributeOverride(name="rueck10", column=@Column(name="RUECK10", precision=9, scale=3) ),
        @AttributeOverride(name="masche11", column=@Column(name="MASCHE11", precision=7, scale=4) ),
        @AttributeOverride(name="rueck11", column=@Column(name="RUECK11", precision=9, scale=3) ),
        @AttributeOverride(name="masche12", column=@Column(name="MASCHE12", precision=7, scale=4) ),
        @AttributeOverride(name="rueck12", column=@Column(name="RUECK12", precision=9, scale=3) ),
        @AttributeOverride(name="masche13", column=@Column(name="MASCHE13", precision=7, scale=4) ),
        @AttributeOverride(name="rueck13", column=@Column(name="RUECK13", precision=9, scale=3) ),
        @AttributeOverride(name="masche14", column=@Column(name="MASCHE14", precision=7, scale=4) ),
        @AttributeOverride(name="rueck14", column=@Column(name="RUECK14", precision=9, scale=3) ),
        @AttributeOverride(name="masche15", column=@Column(name="MASCHE15", precision=7, scale=4) ),
        @AttributeOverride(name="rueck15", column=@Column(name="RUECK15", precision=9, scale=3) ),
        @AttributeOverride(name="masche16", column=@Column(name="MASCHE16", precision=7, scale=4) ),
        @AttributeOverride(name="rueck16", column=@Column(name="RUECK16", precision=9, scale=3) ),
        @AttributeOverride(name="masche17", column=@Column(name="MASCHE17", precision=7, scale=4) ),
        @AttributeOverride(name="rueck17", column=@Column(name="RUECK17", precision=9, scale=3) ),
        @AttributeOverride(name="masche18", column=@Column(name="MASCHE18", precision=7, scale=4) ),
        @AttributeOverride(name="rueck18", column=@Column(name="RUECK18", precision=9, scale=3) ),
        @AttributeOverride(name="masche19", column=@Column(name="MASCHE19", precision=7, scale=4) ),
        @AttributeOverride(name="rueck19", column=@Column(name="RUECK19", precision=9, scale=3) ),
        @AttributeOverride(name="masche20", column=@Column(name="MASCHE20", precision=7, scale=4) ),
        @AttributeOverride(name="rueck20", column=@Column(name="RUECK20", precision=9, scale=3) ),
        @AttributeOverride(name="masche21", column=@Column(name="MASCHE21", precision=7, scale=4) ),
        @AttributeOverride(name="rueck21", column=@Column(name="RUECK21", precision=9, scale=3) ),
        @AttributeOverride(name="rest", column=@Column(name="REST", precision=9, scale=3) ) } )
    public SsiebungsiebId getId() {
        return this.id;
    }

    public void setId(SsiebungsiebId id) {
        this.id = id;
    }
}

http://dive4elements.wald.intevation.org