Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.hska.gen;
- // Generated 18.11.2010 11:49:49 by Hibernate Tools 3.4.0.Beta1
- import java.util.Date;
- import java.util.HashSet;
- import java.util.Set;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.FetchType;
- import javax.persistence.GeneratedValue;
- import static javax.persistence.GenerationType.IDENTITY;
- import javax.persistence.Id;
- import javax.persistence.JoinColumn;
- import javax.persistence.ManyToOne;
- import javax.persistence.OneToMany;
- import javax.persistence.Table;
- import javax.persistence.Temporal;
- import javax.persistence.TemporalType;
- /**
- * Kunde generated by hbm2java
- */
- @Entity
- @Table(name = "kunde", catalog = "swe1db")
- public class Kunde implements java.io.Serializable {
- private Integer idKunde;
- private Bankdaten bankdaten;
- private Adresse adresse;
- private String vorname;
- private String nachname;
- private String EMail;
- private Date regdatum;
- private Date geburtsdatum;
- private String titel;
- private String anrede;
- private String passwort;
- private char typ;
- private Set<Bestellung> bestellungs = new HashSet<Bestellung>(0);
- public Kunde() {
- }
- public Kunde(Bankdaten bankdaten, Adresse adresse, String vorname,
- String nachname, String EMail, Date regdatum, Date geburtsdatum,
- String anrede, String passwort, char typ) {
- this.bankdaten = bankdaten;
- this.adresse = adresse;
- this.vorname = vorname;
- this.nachname = nachname;
- this.EMail = EMail;
- this.regdatum = regdatum;
- this.geburtsdatum = geburtsdatum;
- this.anrede = anrede;
- this.passwort = passwort;
- this.typ = typ;
- }
- public Kunde(Bankdaten bankdaten, Adresse adresse, String vorname,
- String nachname, String EMail, Date regdatum, Date geburtsdatum,
- String titel, String anrede, String passwort, char typ,
- Set<Bestellung> bestellungs) {
- this.bankdaten = bankdaten;
- this.adresse = adresse;
- this.vorname = vorname;
- this.nachname = nachname;
- this.EMail = EMail;
- this.regdatum = regdatum;
- this.geburtsdatum = geburtsdatum;
- this.titel = titel;
- this.anrede = anrede;
- this.passwort = passwort;
- this.typ = typ;
- this.bestellungs = bestellungs;
- }
- @Id
- @GeneratedValue(strategy = IDENTITY)
- @Column(name = "idKunde", unique = true, nullable = false)
- public Integer getIdKunde() {
- return this.idKunde;
- }
- public void setIdKunde(Integer idKunde) {
- this.idKunde = idKunde;
- }
- @ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "Bankdaten_idBankdaten", nullable = false)
- public Bankdaten getBankdaten() {
- return this.bankdaten;
- }
- public void setBankdaten(Bankdaten bankdaten) {
- this.bankdaten = bankdaten;
- }
- @ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "Adresse_idAdresse", nullable = false)
- public Adresse getAdresse() {
- return this.adresse;
- }
- public void setAdresse(Adresse adresse) {
- this.adresse = adresse;
- }
- @Column(name = "Vorname", nullable = false, length = 20)
- public String getVorname() {
- return this.vorname;
- }
- public void setVorname(String vorname) {
- this.vorname = vorname;
- }
- @Column(name = "Nachname", nullable = false, length = 30)
- public String getNachname() {
- return this.nachname;
- }
- public void setNachname(String nachname) {
- this.nachname = nachname;
- }
- @Column(name = "E-Mail", nullable = false, length = 25)
- public String getEMail() {
- return this.EMail;
- }
- public void setEMail(String EMail) {
- this.EMail = EMail;
- }
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "Regdatum", nullable = false, length = 19)
- public Date getRegdatum() {
- return this.regdatum;
- }
- public void setRegdatum(Date regdatum) {
- this.regdatum = regdatum;
- }
- @Temporal(TemporalType.DATE)
- @Column(name = "Geburtsdatum", nullable = false, length = 10)
- public Date getGeburtsdatum() {
- return this.geburtsdatum;
- }
- public void setGeburtsdatum(Date geburtsdatum) {
- this.geburtsdatum = geburtsdatum;
- }
- @Column(name = "Titel", length = 10)
- public String getTitel() {
- return this.titel;
- }
- public void setTitel(String titel) {
- this.titel = titel;
- }
- @Column(name = "Anrede", nullable = false, length = 5)
- public String getAnrede() {
- return this.anrede;
- }
- public void setAnrede(String anrede) {
- this.anrede = anrede;
- }
- @Column(name = "Passwort", nullable = false, length = 32)
- public String getPasswort() {
- return this.passwort;
- }
- public void setPasswort(String passwort) {
- this.passwort = passwort;
- }
- @Column(name = "Typ", nullable = false, length = 1)
- public char getTyp() {
- return this.typ;
- }
- public void setTyp(char typ) {
- this.typ = typ;
- }
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "kunde")
- public Set<Bestellung> getBestellungs() {
- return this.bestellungs;
- }
- public void setBestellungs(Set<Bestellung> bestellungs) {
- this.bestellungs = bestellungs;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement