Showing
2 changed files
with
43 additions
and
0 deletions
1 | +package org.legrog.entities; | ||
2 | + | ||
3 | +import javax.persistence.GeneratedValue; | ||
4 | +import javax.persistence.GenerationType; | ||
5 | +import javax.persistence.Id; | ||
6 | + | ||
7 | +/** | ||
8 | + * Classe des actions possibles. | ||
9 | + */ | ||
10 | +public class Action { | ||
11 | + @Id | ||
12 | + @GeneratedValue(strategy = GenerationType.AUTO) | ||
13 | + private int actionId; | ||
14 | + | ||
15 | + private String actionName; | ||
16 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +package org.legrog.entities; | ||
2 | + | ||
3 | +import javax.persistence.*; | ||
4 | +import java.sql.Timestamp; | ||
5 | + | ||
6 | +/** | ||
7 | + * Classe des actions sur des (versions d') éditeurs. | ||
8 | + */ | ||
9 | +public class PublisherAction { | ||
10 | + @Id | ||
11 | + @GeneratedValue(strategy = GenerationType.AUTO) | ||
12 | + private int publisherActionId; | ||
13 | + | ||
14 | + @ManyToOne | ||
15 | + private Action action; | ||
16 | + @ManyToOne | ||
17 | + private User publisherActionAuthor; | ||
18 | + @ManyToOne | ||
19 | + private PublisherVersion publisherVersion; | ||
20 | + | ||
21 | + private Timestamp publisherActionDatetime; | ||
22 | + | ||
23 | + // Accessible par publisherVersion, demande spécifique de la MOE | ||
24 | + @ManyToOne | ||
25 | + private Publisher publisher; | ||
26 | + | ||
27 | +} |
-
Please register or login to post a comment