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
88a25a5b
Commit
88a25a5b
authored
May 22, 2020
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@JsonIdentityInfo is a bad idea
- IDs get duplicated in JSON
parent
309cf8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
core/src/main/java/org/genesys/blocks/model/EmptyModel.java
core/src/main/java/org/genesys/blocks/model/EmptyModel.java
+0
-3
No files found.
core/src/main/java/org/genesys/blocks/model/EmptyModel.java
View file @
88a25a5b
...
...
@@ -21,12 +21,9 @@ import javax.persistence.MappedSuperclass;
import
org.genesys.blocks.util.JsonClassNameWriter
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
import
com.fasterxml.jackson.annotation.ObjectIdGenerators
;
import
com.fasterxml.jackson.databind.annotation.JsonAppend
;
@MappedSuperclass
@JsonIdentityInfo
(
generator
=
ObjectIdGenerators
.
PropertyGenerator
.
class
,
property
=
"id"
)
@JsonAppend
(
props
=
{
@JsonAppend
.
Prop
(
name
=
"_class"
,
value
=
JsonClassNameWriter
.
class
,
type
=
String
.
class
)
})
public
abstract
class
EmptyModel
implements
EntityId
,
Serializable
{
...
...
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