Jean-Francois Leveque

Refactoring int -> Integer pour les Id : Country

...@@ -10,14 +10,14 @@ import javax.persistence.*; ...@@ -10,14 +10,14 @@ import javax.persistence.*;
10 public class Country { 10 public class Country {
11 @Id 11 @Id
12 @GeneratedValue(strategy = GenerationType.IDENTITY) 12 @GeneratedValue(strategy = GenerationType.IDENTITY)
13 - private int countryId; 13 + private Integer countryId;
14 private String countryName; 14 private String countryName;
15 15
16 - public int getCountryId() { 16 + public Integer getCountryId() {
17 return countryId; 17 return countryId;
18 } 18 }
19 19
20 - public void setCountryId(int countryId) { 20 + public void setCountryId(Integer countryId) {
21 this.countryId = countryId; 21 this.countryId = countryId;
22 } 22 }
23 23
......