# HG changeset patch # User Raimund Renkert # Date 1372337988 -7200 # Node ID 8492b8f2efaf57a2933a12fcb71356fb0b2230c2 # Parent 6a4811d889da65b75121dc8c07d646e15def0a0b New model class for table 'auth'. diff -r 6a4811d889da -r 8492b8f2efaf src/main/java/de/intevation/lada/model/Auth.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/model/Auth.java Thu Jun 27 14:59:48 2013 +0200 @@ -0,0 +1,86 @@ +package de.intevation.lada.model; + +// Generated 24.06.2013 16:31:53 by Hibernate Tools 3.4.0.CR1 + +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.Table; + + +/** + * Auth generated by hbm2java + */ +@Entity +@Table(name = "auth", schema = "public") +public class Auth +implements java.io.Serializable +{ + + private int id; + private SMessStelle SMessStelle; + private SNetzBetreiber SNetzBetreiber; + private String ldapGroup; + + public Auth() { + } + + public Auth(int id, String ldapGroup) { + this.id = id; + this.ldapGroup = ldapGroup; + } + + public Auth( + int id, + SMessStelle SMessStelle, + SNetzBetreiber SNetzBetreiber, + String ldapGroup) { + this.id = id; + this.SMessStelle = SMessStelle; + this.SNetzBetreiber = SNetzBetreiber; + this.ldapGroup = ldapGroup; + } + + @Id + @Column(name = "id", unique = true, nullable = false) + public int getId() { + return this.id; + } + + public void setId(int id) { + this.id = id; + } + + @ManyToOne(fetch = FetchType.EAGER) + @JoinColumn(name = "mst_id") + public SMessStelle getSMessStelle() { + return this.SMessStelle; + } + + public void setSMessStelle(SMessStelle SMessStelle) { + this.SMessStelle = SMessStelle; + } + + @ManyToOne(fetch = FetchType.EAGER) + @JoinColumn(name = "netzbetreiber_id") + public SNetzBetreiber getSNetzBetreiber() { + return this.SNetzBetreiber; + } + + public void setSNetzBetreiber(SNetzBetreiber SNetzBetreiber) { + this.SNetzBetreiber = SNetzBetreiber; + } + + @Column(name = "ldap_group", nullable = false, length = 40) + public String getLdapGroup() { + return this.ldapGroup; + } + + public void setLdapGroup(String ldapGroup) { + this.ldapGroup = ldapGroup; + } + +}