mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
[CORE] ProductUpdate : suppr de l'attr Date pour éviter les erreurs 505 lors des requêtes HTTP vers un web-serveur Tomcat
This commit is contained in:
parent
18907258c1
commit
67f9f54d8d
@ -9,7 +9,6 @@ import java.util.Objects;
|
|||||||
|
|
||||||
public class ProductUpdate implements ILoggable, Serializable {
|
public class ProductUpdate implements ILoggable, Serializable {
|
||||||
|
|
||||||
private Date createdAt;
|
|
||||||
private Product oldVersion;
|
private Product oldVersion;
|
||||||
private Product newVersion;
|
private Product newVersion;
|
||||||
|
|
||||||
@ -17,25 +16,15 @@ public class ProductUpdate implements ILoggable, Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ProductUpdate(Product oldVersion, Product newVersion) {
|
public ProductUpdate(Product oldVersion, Product newVersion) {
|
||||||
this.createdAt = new Date();
|
|
||||||
this.oldVersion = oldVersion;
|
this.oldVersion = oldVersion;
|
||||||
this.newVersion = newVersion;
|
this.newVersion = newVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProductUpdate(Date createdAt, Product oldVersion, Product newVersion) {
|
public ProductUpdate(Date createdAt, Product oldVersion, Product newVersion) {
|
||||||
this.createdAt = createdAt;
|
|
||||||
this.oldVersion = oldVersion;
|
this.oldVersion = oldVersion;
|
||||||
this.newVersion = newVersion;
|
this.newVersion = newVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getCreatedAt() {
|
|
||||||
return createdAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCreatedAt(Date createdAt) {
|
|
||||||
this.createdAt = createdAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Product getOldVersion() {
|
public Product getOldVersion() {
|
||||||
return oldVersion;
|
return oldVersion;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user