Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
JR Utily
2016-11-21 01:38:35 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b99934435d1478fb3ef886b4e927c7c6b20b348
1b999344
1 parent
cb6d34c7
changing GeneratedId to IDENTITY
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
src/main/java/org/legrog/entities/Book.java
src/main/java/org/legrog/entities/Country.java
src/main/java/org/legrog/entities/Publisher.java
src/main/java/org/legrog/entities/PublisherVersion.java
src/main/java/org/legrog/entities/User.java
src/main/java/org/legrog/entities/UserAttribute.java
src/main/java/org/legrog/entities/UserProperty.java
src/main/java/org/legrog/entities/UserRole.java
src/main/java/org/legrog/entities/Book.java
View file @
1b99934
...
...
@@ -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
;
...
...
src/main/java/org/legrog/entities/Country.java
View file @
1b99934
...
...
@@ -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
;
...
...
src/main/java/org/legrog/entities/Publisher.java
View file @
1b99934
...
...
@@ -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
...
...
src/main/java/org/legrog/entities/PublisherVersion.java
View file @
1b99934
...
...
@@ -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
;
...
...
src/main/java/org/legrog/entities/User.java
View file @
1b99934
...
...
@@ -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
;
...
...
src/main/java/org/legrog/entities/UserAttribute.java
View file @
1b99934
...
...
@@ -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
()
{
...
...
src/main/java/org/legrog/entities/UserProperty.java
View file @
1b99934
...
...
@@ -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
;
...
...
src/main/java/org/legrog/entities/UserRole.java
View file @
1b99934
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment