Jean-Francois Leveque

Nettoyage du vieil identifiant et suppression des données transférées dans le nouveau modèle.

......@@ -15,18 +15,12 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ {
// TODO L'éventuel usage de Linkable reste à confirmer https://tree.taiga.io/project/jr-utily-grog-v3/us/48
// TODO Attention, en v2 Linkable implique Traceable (journalisable) qui devrait aussi être évalué
@Id
@Column(name = "PUBLISHER_ID")
@GeneratedValue(strategy = GenerationType.AUTO)
private int publisherId;
@OneToOne
private PublisherVersion validatedVersion;
@OneToOne
private User validator;
private Timestamp validationDateTime;
@OneToMany(mappedBy = "publisher", fetch = FetchType.EAGER)
private Set<PublisherVersion> versions;
......@@ -54,24 +48,8 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ {
this.versions = versions;
}
public User getValidator() {
return validator;
}
public void setValidator(User activeValidator) {
this.validator = activeValidator;
}
public Timestamp getValidationDateTime() {
return validationDateTime;
}
public void setValidationDateTime(Timestamp validationDateTime) {
this.validationDateTime = validationDateTime;
}
@Override
public String toString() {
return "PUBLISHER_ID = " + publisherId + ", Validated Version = " + validatedVersion + ", Validator = " + validator + ", Validation DateTime = " + validationDateTime;
return "PUBLISHER_ID = " + publisherId + ", Validated Version = " + validatedVersion;
}
}
......