Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name = "USER")
- @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", scope = User.class)
- public class User extends AbstractValueObject {
- private Integer id;
- private String name;
- .....
- }
- public class Load extends AbstractValueObject {
- private Integer id;
- private User postedBy;
- }
- [
- {
- "id" : 1,
- "postedBy" : {
- "id":1,
- "name":"SOF"
- }
- },
- {
- "id" : 1,
- "postedBy" : 1
- }
- ]
Add Comment
Please, Sign In to add comment