Renommage d'Action en UserAction pour population base, car action est un mot-clef SQL.
Showing
3 changed files
with
5 additions
and
4 deletions
... | @@ -12,7 +12,7 @@ public class PublisherAction { | ... | @@ -12,7 +12,7 @@ public class PublisherAction { |
12 | private int publisherActionId; | 12 | private int publisherActionId; |
13 | 13 | ||
14 | @ManyToOne | 14 | @ManyToOne |
15 | - private Action action; | 15 | + private UserAction action; |
16 | @ManyToOne | 16 | @ManyToOne |
17 | private User publisherActionAuthor; | 17 | private User publisherActionAuthor; |
18 | @ManyToOne | 18 | @ManyToOne | ... | ... |
... | @@ -7,10 +7,10 @@ import javax.persistence.Id; | ... | @@ -7,10 +7,10 @@ import javax.persistence.Id; |
7 | /** | 7 | /** |
8 | * Classe des actions possibles. | 8 | * Classe des actions possibles. |
9 | */ | 9 | */ |
10 | -public class Action { | 10 | +public class UserAction { |
11 | @Id | 11 | @Id |
12 | @GeneratedValue(strategy = GenerationType.AUTO) | 12 | @GeneratedValue(strategy = GenerationType.AUTO) |
13 | - private int actionId; | 13 | + private int userActionId; |
14 | 14 | ||
15 | - private String actionName; | 15 | + private String userActionName; |
16 | } | 16 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | +INSERT INTO UserAction (userActionName) VALUES ('Update'); | ||
1 | INSERT INTO Country (countryName) VALUES ('France'); | 2 | INSERT INTO Country (countryName) VALUES ('France'); |
2 | INSERT INTO Country (countryName) VALUES ('Suisse'); | 3 | INSERT INTO Country (countryName) VALUES ('Suisse'); |
3 | INSERT INTO Country (countryName) VALUES ('Belgique'); | 4 | INSERT INTO Country (countryName) VALUES ('Belgique'); | ... | ... |
-
Please register or login to post a comment