Commit 15bce20f authored by Maxym Borodenko's avatar Maxym Borodenko

A copy constructor for AuditLog

parent 7d17bdbe
......@@ -112,6 +112,30 @@ public class AuditLog implements Serializable {
@JsonProperty
private Object newEntity;
/**
* Instantiates a new AuditLog object.
*/
public AuditLog() {
}
/**
* Makes a deep copy of an existing AuditLog object.
*/
public AuditLog(AuditLog source) {
this.id = source.getId();
this.createdBy = source.getCreatedBy();
this.logDate = source.getLogDate();
this.classPk = source.getClassPk();
this.entityId = source.getEntityId();
this.propertyName = source.getPropertyName();
this.referencedEntity = source.getReferencedEntity();
this.previousState = source.getPreviousState();
this.newState = source.getNewState();
this.action = source.getAction();
this.previousEntity = source.getPreviousEntity();
this.newEntity = source.getNewEntity();
}
/**
* Gets the id.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment