comparison src/main/java/de/intevation/lada/model/Probe.java @ 991:ce1ec3cbde54

Make ID for Messregime an integer. Using VARCHAR(1) has drawbacks such as an empty string being a valid value.
author Tom Gottfried <tom@intevation.de>
date Fri, 01 Jul 2016 17:36:06 +0200
parents a51b320a5316
children
comparison
equal deleted inserted replaced
990:ff07474b65e0 991:ce1ec3cbde54
30 @GeneratedValue(strategy=GenerationType.IDENTITY) 30 @GeneratedValue(strategy=GenerationType.IDENTITY)
31 @Column(name="id", unique=true, nullable=false) 31 @Column(name="id", unique=true, nullable=false)
32 private Integer id; 32 private Integer id;
33 33
34 @Column(name="ba_id") 34 @Column(name="ba_id")
35 private String baId; 35 private Integer baId;
36 36
37 @Column(name="datenbasis_id") 37 @Column(name="datenbasis_id")
38 private Integer datenbasisId; 38 private Integer datenbasisId;
39 39
40 @Column(name="letzte_aenderung") 40 @Column(name="letzte_aenderung")
79 79
80 public void setId(Integer id) { 80 public void setId(Integer id) {
81 this.id = id; 81 this.id = id;
82 } 82 }
83 83
84 public String getBaId() { 84 public Integer getBaId() {
85 return this.baId; 85 return this.baId;
86 } 86 }
87 87
88 public void setBaId(String baId) { 88 public void setBaId(Integer baId) {
89 this.baId = baId; 89 this.baId = baId;
90 } 90 }
91 91
92 public Integer getDatenbasisId() { 92 public Integer getDatenbasisId() {
93 return this.datenbasisId; 93 return this.datenbasisId;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)