Commit 0b286d69 authored by Matija Obreza's avatar Matija Obreza

Merge branch 'copy-constructor-for-auditlog' into 'master'

A copy constructor for AuditLog

See merge request genesys-pgr/application-blocks!78
parents 7d17bdbe 15bce20f
......@@ -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