JR Utily

changing GeneratedId to IDENTITY

......@@ -6,7 +6,7 @@ import javax.persistence.*;
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int bookId;
private String bookTitle;
......
......@@ -9,7 +9,7 @@ import javax.persistence.*;
@Entity
public class Country /* extends org.roliste.data.DbEntity */ {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="COUNTRY_ID")
private int countryId;
private String countryName;
......
......@@ -16,7 +16,7 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ {
// TODO Attention, en v2 Linkable implique Traceable (journalisable) qui devrait aussi être évalué
@Id
@Column(name = "PUBLISHER_ID")
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int publisherId;
@OneToOne
......
......@@ -13,7 +13,7 @@ import java.sql.Timestamp;
@Entity
public class PublisherVersion {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
// TODO Faire le ménage de cet identifiant
@Column(name = "PUBLISHER_VERSION_ID")
private int publisherVersionId;
......
......@@ -15,7 +15,7 @@ import java.util.*;
public class User /* extends org.roliste.data.DbTraceableEntity */ implements DisplayNameConfigurable /*, DbValidationEntity */ {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="USER_ID")
private int userId;
......
......@@ -9,7 +9,7 @@ import javax.persistence.*;
@Entity
public class UserAttribute {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int userAttributeId;
public int getUserAttributeId() {
......
......@@ -9,7 +9,7 @@ import javax.persistence.*;
@Entity
public class UserProperty {
@Id
@GeneratedValue(strategy = GenerationType.AUTO) /* Permet la population */
@GeneratedValue(strategy = GenerationType.IDENTITY) /* Permet la population */
@Column(name="USER_PROPERTY_ID")
private int userPropertyId;
......
......@@ -22,7 +22,7 @@ import javax.persistence.*;
public class UserRole /* extends org.roliste.data.DbEntity */
{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="USER_ROLE_ID")
private int userRoleId;
......