Jean-Francois Leveque

Ajout des nouvelles classes et de leurs attributs.

package org.legrog.entities;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* Classe des actions possibles.
*/
public class Action {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int actionId;
private String actionName;
}
\ No newline at end of file
package org.legrog.entities;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Classe des actions sur des (versions d') éditeurs.
*/
public class PublisherAction {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int publisherActionId;
@ManyToOne
private Action action;
@ManyToOne
private User publisherActionAuthor;
@ManyToOne
private PublisherVersion publisherVersion;
private Timestamp publisherActionDatetime;
// Accessible par publisherVersion, demande spécifique de la MOE
@ManyToOne
private Publisher publisher;
}