Mercurial > lada > lada-server
changeset 179:8492b8f2efaf
New model class for table 'auth'.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 27 Jun 2013 14:59:48 +0200 |
parents | 6a4811d889da |
children | cfa61bb7a86f |
files | src/main/java/de/intevation/lada/model/Auth.java |
diffstat | 1 files changed, 86 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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; + } + +}