Showing
8 changed files
with
8 additions
and
8 deletions
... | @@ -6,7 +6,7 @@ import javax.persistence.*; | ... | @@ -6,7 +6,7 @@ import javax.persistence.*; |
6 | public class Book { | 6 | public class Book { |
7 | 7 | ||
8 | @Id | 8 | @Id |
9 | - @GeneratedValue(strategy = GenerationType.AUTO) | 9 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
10 | private int bookId; | 10 | private int bookId; |
11 | private String bookTitle; | 11 | private String bookTitle; |
12 | 12 | ... | ... |
... | @@ -9,7 +9,7 @@ import javax.persistence.*; | ... | @@ -9,7 +9,7 @@ import javax.persistence.*; |
9 | @Entity | 9 | @Entity |
10 | public class Country /* extends org.roliste.data.DbEntity */ { | 10 | public class Country /* extends org.roliste.data.DbEntity */ { |
11 | @Id | 11 | @Id |
12 | - @GeneratedValue(strategy = GenerationType.AUTO) | 12 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
13 | @Column(name="COUNTRY_ID") | 13 | @Column(name="COUNTRY_ID") |
14 | private int countryId; | 14 | private int countryId; |
15 | private String countryName; | 15 | private String countryName; | ... | ... |
... | @@ -16,7 +16,7 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ { | ... | @@ -16,7 +16,7 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ { |
16 | // TODO Attention, en v2 Linkable implique Traceable (journalisable) qui devrait aussi être évalué | 16 | // TODO Attention, en v2 Linkable implique Traceable (journalisable) qui devrait aussi être évalué |
17 | @Id | 17 | @Id |
18 | @Column(name = "PUBLISHER_ID") | 18 | @Column(name = "PUBLISHER_ID") |
19 | - @GeneratedValue(strategy = GenerationType.AUTO) | 19 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
20 | private int publisherId; | 20 | private int publisherId; |
21 | 21 | ||
22 | @OneToOne | 22 | @OneToOne | ... | ... |
... | @@ -13,7 +13,7 @@ import java.sql.Timestamp; | ... | @@ -13,7 +13,7 @@ import java.sql.Timestamp; |
13 | @Entity | 13 | @Entity |
14 | public class PublisherVersion { | 14 | public class PublisherVersion { |
15 | @Id | 15 | @Id |
16 | - @GeneratedValue(strategy = GenerationType.AUTO) | 16 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
17 | // TODO Faire le ménage de cet identifiant | 17 | // TODO Faire le ménage de cet identifiant |
18 | @Column(name = "PUBLISHER_VERSION_ID") | 18 | @Column(name = "PUBLISHER_VERSION_ID") |
19 | private int publisherVersionId; | 19 | private int publisherVersionId; | ... | ... |
... | @@ -15,7 +15,7 @@ import java.util.*; | ... | @@ -15,7 +15,7 @@ import java.util.*; |
15 | public class User /* extends org.roliste.data.DbTraceableEntity */ implements DisplayNameConfigurable /*, DbValidationEntity */ { | 15 | public class User /* extends org.roliste.data.DbTraceableEntity */ implements DisplayNameConfigurable /*, DbValidationEntity */ { |
16 | 16 | ||
17 | @Id | 17 | @Id |
18 | - @GeneratedValue(strategy = GenerationType.AUTO) | 18 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
19 | @Column(name="USER_ID") | 19 | @Column(name="USER_ID") |
20 | private int userId; | 20 | private int userId; |
21 | 21 | ... | ... |
... | @@ -9,7 +9,7 @@ import javax.persistence.*; | ... | @@ -9,7 +9,7 @@ import javax.persistence.*; |
9 | @Entity | 9 | @Entity |
10 | public class UserAttribute { | 10 | public class UserAttribute { |
11 | @Id | 11 | @Id |
12 | - @GeneratedValue(strategy = GenerationType.AUTO) | 12 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
13 | private int userAttributeId; | 13 | private int userAttributeId; |
14 | 14 | ||
15 | public int getUserAttributeId() { | 15 | public int getUserAttributeId() { | ... | ... |
... | @@ -9,7 +9,7 @@ import javax.persistence.*; | ... | @@ -9,7 +9,7 @@ import javax.persistence.*; |
9 | @Entity | 9 | @Entity |
10 | public class UserProperty { | 10 | public class UserProperty { |
11 | @Id | 11 | @Id |
12 | - @GeneratedValue(strategy = GenerationType.AUTO) /* Permet la population */ | 12 | + @GeneratedValue(strategy = GenerationType.IDENTITY) /* Permet la population */ |
13 | @Column(name="USER_PROPERTY_ID") | 13 | @Column(name="USER_PROPERTY_ID") |
14 | private int userPropertyId; | 14 | private int userPropertyId; |
15 | 15 | ... | ... |
... | @@ -22,7 +22,7 @@ import javax.persistence.*; | ... | @@ -22,7 +22,7 @@ import javax.persistence.*; |
22 | public class UserRole /* extends org.roliste.data.DbEntity */ | 22 | public class UserRole /* extends org.roliste.data.DbEntity */ |
23 | { | 23 | { |
24 | @Id | 24 | @Id |
25 | - @GeneratedValue(strategy = GenerationType.AUTO) | 25 | + @GeneratedValue(strategy = GenerationType.IDENTITY) |
26 | @Column(name="USER_ROLE_ID") | 26 | @Column(name="USER_ROLE_ID") |
27 | private int userRoleId; | 27 | private int userRoleId; |
28 | 28 | ... | ... |
-
Please register or login to post a comment