Jean-Francois Leveque

Renommage d'Action en UserAction pour population base, car action est un mot-clef SQL.

......@@ -12,7 +12,7 @@ public class PublisherAction {
private int publisherActionId;
@ManyToOne
private Action action;
private UserAction action;
@ManyToOne
private User publisherActionAuthor;
@ManyToOne
......
......@@ -7,10 +7,10 @@ import javax.persistence.Id;
/**
* Classe des actions possibles.
*/
public class Action {
public class UserAction {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int actionId;
private int userActionId;
private String actionName;
private String userActionName;
}
\ No newline at end of file
......
INSERT INTO UserAction (userActionName) VALUES ('Update');
INSERT INTO Country (countryName) VALUES ('France');
INSERT INTO Country (countryName) VALUES ('Suisse');
INSERT INTO Country (countryName) VALUES ('Belgique');
......