Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
App Blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Genesys PGR
App Blocks
Commits
75c22943
Commit
75c22943
authored
Feb 04, 2019
by
Matija Obreza
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Serialize @Transitive properties with Jackson
parent
1459ebdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
auditlog/src/main/java/org/genesys/blocks/auditlog/model/AuditLog.java
...main/java/org/genesys/blocks/auditlog/model/AuditLog.java
+8
-4
No files found.
auditlog/src/main/java/org/genesys/blocks/auditlog/model/AuditLog.java
View file @
75c22943
...
...
@@ -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.
*
...
...
Matija Obreza
@mobreza
mentioned in issue
genesys-ui#172 (closed)
·
Feb 04, 2019
mentioned in issue
genesys-ui#172 (closed)
mentioned in issue genesys-ui#172
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment