Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity public class User{
- @Id @Column(name = "id")
- @GeneratedValue
- private Long id;
- @OneToMany (mappedBy = "document")
- public Set<Addresses> userAddresses;
- @Version @Column(name="OPTLOCK")
- public Integer getVersion() { ... }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement