Commit 75c22943 authored by Matija Obreza's avatar Matija Obreza

Serialize @Transitive properties with Jackson

parent 1459ebdc
......@@ -39,6 +39,8 @@ import org.genesys.blocks.model.ClassPK;
import org.hibernate.annotations.Type;
import org.springframework.data.annotation.CreatedBy;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The Class AuditLog.
*/
......@@ -102,10 +104,12 @@ public class AuditLog implements Serializable {
/** The previous entity. */
@Transient
@JsonProperty
private Object previousEntity;
/** The next entity. */
@Transient
@JsonProperty
private Object newEntity;
/**
......@@ -294,7 +298,7 @@ public class AuditLog implements Serializable {
* @param entity the new previous entity
*/
public void setPreviousEntity(Object entity) {
this.previousEntity=entity;
this.previousEntity = entity;
}
/**
......
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