Advertisement
Noah-Huppert

Scotch User Model V2

Nov 20th, 2014
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. @Entity
  2. public class User extends Model{
  3.     /**
  4.      * The users Id
  5.      */
  6.     @Id
  7.     public String userId;
  8.  
  9.     /**
  10.      * The user's LegalName
  11.      */
  12.     @OneToOne(mappedBy = "user", cascade = CascadeType.ALL)
  13.     @Constraints.Required
  14.     public UserLegalName legalName;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement