Last active
March 12, 2019 15:29
-
-
Save evonsdesigns/bb675ba59c7ab682f1f0c4a64149ab91 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Entity | |
| public class ExamplePojo { | |
| @Transient | |
| private static final String type = "SomethingToInclude"; | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.IDENTITY) | |
| private Long id; | |
| public void setId(Long id) { | |
| this.id = id; | |
| } | |
| public Long getId() { | |
| return id; | |
| } | |
| @Transient | |
| @JsonGetter(value = "transientProperty") | |
| public String getType() { | |
| return type; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment