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