comparison src/main/java/de/intevation/lada/model/land/Messprogramm.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 e192feaf916f
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="gem_id") 40 @Column(name="gem_id")
100 100
101 public void setId(Integer id) { 101 public void setId(Integer id) {
102 this.id = id; 102 this.id = id;
103 } 103 }
104 104
105 public String getBaId() { 105 public Integer getBaId() {
106 return this.baId; 106 return this.baId;
107 } 107 }
108 108
109 public void setBaId(String baId) { 109 public void setBaId(Integer baId) {
110 this.baId = baId; 110 this.baId = baId;
111 } 111 }
112 112
113 public Integer getDatenbasisId() { 113 public Integer getDatenbasisId() {
114 return this.datenbasisId; 114 return this.datenbasisId;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)