Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -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 | ... | ... |
-
Please register or login to post a comment