Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. package de.hska.gen;
  2.  
  3. // Generated 18.11.2010 11:49:49 by Hibernate Tools 3.4.0.Beta1
  4.  
  5. import java.util.Date;
  6. import java.util.HashSet;
  7. import java.util.Set;
  8. import javax.persistence.Column;
  9. import javax.persistence.Entity;
  10. import javax.persistence.FetchType;
  11. import javax.persistence.GeneratedValue;
  12. import static javax.persistence.GenerationType.IDENTITY;
  13. import javax.persistence.Id;
  14. import javax.persistence.JoinColumn;
  15. import javax.persistence.ManyToOne;
  16. import javax.persistence.OneToMany;
  17. import javax.persistence.Table;
  18. import javax.persistence.Temporal;
  19. import javax.persistence.TemporalType;
  20.  
  21. /**
  22. * Kunde generated by hbm2java
  23. */
  24. @Entity
  25. @Table(name = "kunde", catalog = "swe1db")
  26. public class Kunde implements java.io.Serializable {
  27.  
  28. private Integer idKunde;
  29. private Bankdaten bankdaten;
  30. private Adresse adresse;
  31. private String vorname;
  32. private String nachname;
  33. private String EMail;
  34. private Date regdatum;
  35. private Date geburtsdatum;
  36. private String titel;
  37. private String anrede;
  38. private String passwort;
  39. private char typ;
  40. private Set<Bestellung> bestellungs = new HashSet<Bestellung>(0);
  41.  
  42. public Kunde() {
  43. }
  44.  
  45. public Kunde(Bankdaten bankdaten, Adresse adresse, String vorname,
  46. String nachname, String EMail, Date regdatum, Date geburtsdatum,
  47. String anrede, String passwort, char typ) {
  48. this.bankdaten = bankdaten;
  49. this.adresse = adresse;
  50. this.vorname = vorname;
  51. this.nachname = nachname;
  52. this.EMail = EMail;
  53. this.regdatum = regdatum;
  54. this.geburtsdatum = geburtsdatum;
  55. this.anrede = anrede;
  56. this.passwort = passwort;
  57. this.typ = typ;
  58. }
  59.  
  60. public Kunde(Bankdaten bankdaten, Adresse adresse, String vorname,
  61. String nachname, String EMail, Date regdatum, Date geburtsdatum,
  62. String titel, String anrede, String passwort, char typ,
  63. Set<Bestellung> bestellungs) {
  64. this.bankdaten = bankdaten;
  65. this.adresse = adresse;
  66. this.vorname = vorname;
  67. this.nachname = nachname;
  68. this.EMail = EMail;
  69. this.regdatum = regdatum;
  70. this.geburtsdatum = geburtsdatum;
  71. this.titel = titel;
  72. this.anrede = anrede;
  73. this.passwort = passwort;
  74. this.typ = typ;
  75. this.bestellungs = bestellungs;
  76. }
  77.  
  78. @Id
  79. @GeneratedValue(strategy = IDENTITY)
  80. @Column(name = "idKunde", unique = true, nullable = false)
  81. public Integer getIdKunde() {
  82. return this.idKunde;
  83. }
  84.  
  85. public void setIdKunde(Integer idKunde) {
  86. this.idKunde = idKunde;
  87. }
  88.  
  89. @ManyToOne(fetch = FetchType.LAZY)
  90. @JoinColumn(name = "Bankdaten_idBankdaten", nullable = false)
  91. public Bankdaten getBankdaten() {
  92. return this.bankdaten;
  93. }
  94.  
  95. public void setBankdaten(Bankdaten bankdaten) {
  96. this.bankdaten = bankdaten;
  97. }
  98.  
  99. @ManyToOne(fetch = FetchType.LAZY)
  100. @JoinColumn(name = "Adresse_idAdresse", nullable = false)
  101. public Adresse getAdresse() {
  102. return this.adresse;
  103. }
  104.  
  105. public void setAdresse(Adresse adresse) {
  106. this.adresse = adresse;
  107. }
  108.  
  109. @Column(name = "Vorname", nullable = false, length = 20)
  110. public String getVorname() {
  111. return this.vorname;
  112. }
  113.  
  114. public void setVorname(String vorname) {
  115. this.vorname = vorname;
  116. }
  117.  
  118. @Column(name = "Nachname", nullable = false, length = 30)
  119. public String getNachname() {
  120. return this.nachname;
  121. }
  122.  
  123. public void setNachname(String nachname) {
  124. this.nachname = nachname;
  125. }
  126.  
  127. @Column(name = "E-Mail", nullable = false, length = 25)
  128. public String getEMail() {
  129. return this.EMail;
  130. }
  131.  
  132. public void setEMail(String EMail) {
  133. this.EMail = EMail;
  134. }
  135.  
  136. @Temporal(TemporalType.TIMESTAMP)
  137. @Column(name = "Regdatum", nullable = false, length = 19)
  138. public Date getRegdatum() {
  139. return this.regdatum;
  140. }
  141.  
  142. public void setRegdatum(Date regdatum) {
  143. this.regdatum = regdatum;
  144. }
  145.  
  146. @Temporal(TemporalType.DATE)
  147. @Column(name = "Geburtsdatum", nullable = false, length = 10)
  148. public Date getGeburtsdatum() {
  149. return this.geburtsdatum;
  150. }
  151.  
  152. public void setGeburtsdatum(Date geburtsdatum) {
  153. this.geburtsdatum = geburtsdatum;
  154. }
  155.  
  156. @Column(name = "Titel", length = 10)
  157. public String getTitel() {
  158. return this.titel;
  159. }
  160.  
  161. public void setTitel(String titel) {
  162. this.titel = titel;
  163. }
  164.  
  165. @Column(name = "Anrede", nullable = false, length = 5)
  166. public String getAnrede() {
  167. return this.anrede;
  168. }
  169.  
  170. public void setAnrede(String anrede) {
  171. this.anrede = anrede;
  172. }
  173.  
  174. @Column(name = "Passwort", nullable = false, length = 32)
  175. public String getPasswort() {
  176. return this.passwort;
  177. }
  178.  
  179. public void setPasswort(String passwort) {
  180. this.passwort = passwort;
  181. }
  182.  
  183. @Column(name = "Typ", nullable = false, length = 1)
  184. public char getTyp() {
  185. return this.typ;
  186. }
  187.  
  188. public void setTyp(char typ) {
  189. this.typ = typ;
  190. }
  191.  
  192. @OneToMany(fetch = FetchType.LAZY, mappedBy = "kunde")
  193. public Set<Bestellung> getBestellungs() {
  194. return this.bestellungs;
  195. }
  196.  
  197. public void setBestellungs(Set<Bestellung> bestellungs) {
  198. this.bestellungs = bestellungs;
  199. }
  200.  
  201. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement