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,9 +298,9 @@ public class AuditLog implements Serializable {
* @param entity the new previous entity
*/
public void setPreviousEntity(Object entity) {
this.previousEntity=entity;
this.previousEntity = entity;
}
/**
* Gets the previous entity.
*
......@@ -305,7 +309,7 @@ public class AuditLog implements Serializable {
public Object getPreviousEntity() {
return previousEntity;
}
/**
* Sets the new entity.
*
......@@ -314,7 +318,7 @@ public class AuditLog implements Serializable {
public void setNewEntity(Object newEntity) {
this.newEntity = newEntity;
}
/**
* Gets the new 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