Commit 872fcf456c8c7722e8cb2afcfb1dda312ed5c337

Authored by Notmoo-PC\Notmoo
1 parent fb27c55d

Modif attr id : Integer -> int (pour clss AccessPoint, Location, RssiRecord et TempRssi)

project/server_core/src/main/java/repository/AccessPoint.java
... ... @@ -10,7 +10,7 @@ import javax.persistence.*;
10 10 @Table(name ="ACCESS_POINT")
11 11 public class AccessPoint implements Serializable{
12 12 @Id @GeneratedValue
13   - private Integer id;
  13 + private int id;
14 14  
15 15 private String mac_addr;
16 16  
... ...
project/server_core/src/main/java/repository/Location.java
... ... @@ -10,7 +10,7 @@ import java.io.Serializable;
10 10 @Table(name = "LOCATION")
11 11 public class Location implements Serializable {
12 12 @Id @GeneratedValue
13   - private Integer id;
  13 + private int id;
14 14 private Double x, y;
15 15  
16 16 @OneToOne(fetch = FetchType.LAZY)
... ...
project/server_core/src/main/java/repository/RssiRecord.java
... ... @@ -10,7 +10,7 @@ import java.io.Serializable;
10 10 @Table (name = "RSSI_RECORD")
11 11 public class RssiRecord implements Serializable {
12 12 @Id @GeneratedValue
13   - private Integer id;
  13 + private int id;
14 14  
15 15  
16 16 @OneToOne(fetch = FetchType.LAZY)
... ... @@ -28,7 +28,6 @@ public class RssiRecord implements Serializable {
28 28 }
29 29  
30 30 public RssiRecord(Location loc, AccessPoint ap, Double avg, Double stdDev){
31   - id = null;
32 31 this.loc = loc;
33 32 this.ap = ap;
34 33 this.avg = avg;
... ...
project/server_core/src/main/java/repository/TempRssi.java
... ... @@ -9,7 +9,7 @@ import javax.persistence.*;
9 9 @Table (name = "TEMP_RSSI")
10 10 public class TempRssi {
11 11 @Id @GeneratedValue
12   - private Integer id;
  12 + private int id;
13 13  
14 14 @OneToOne(fetch = FetchType.LAZY)
15 15 @JoinColumn(name = "id", nullable = false)
... ...