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
Jean-Francois Leveque
2016-11-18 10:15:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
113b4a7a0064d7300b41ca0d93f62ce8454f1bb6
113b4a7a
1 parent
eeed2f17
Renommage d'Action en UserAction pour population base, car action est un mot-clef SQL.
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
src/main/java/org/legrog/entities/PublisherAction.java
src/main/java/org/legrog/entities/Action.java → src/main/java/org/legrog/entities/UserAction.java
src/main/resources/import.sql
src/main/java/org/legrog/entities/PublisherAction.java
View file @
113b4a7
...
...
@@ -12,7 +12,7 @@ public class PublisherAction {
private
int
publisherActionId
;
@ManyToOne
private
Action
action
;
private
User
Action
action
;
@ManyToOne
private
User
publisherActionAuthor
;
@ManyToOne
...
...
src/main/java/org/legrog/entities/Action.java
→
src/main/java/org/legrog/entities/
User
Action.java
View file @
113b4a7
...
...
@@ -7,10 +7,10 @@ import javax.persistence.Id;
/**
* Classe des actions possibles.
*/
public
class
Action
{
public
class
User
Action
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
int
a
ctionId
;
private
int
userA
ctionId
;
private
String
a
ctionName
;
private
String
userA
ctionName
;
}
\ No newline at end of file
...
...
src/main/resources/import.sql
View file @
113b4a7
INSERT
INTO
UserAction
(
userActionName
)
VALUES
(
'Update'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'France'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Suisse'
);
INSERT
INTO
Country
(
countryName
)
VALUES
(
'Belgique'
);
...
...
Please
register
or
login
to post a comment