Advertisement
Noah-Huppert

Scotch UserLegalName V1

Nov 20th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. @Entity
  2. public class UserLegalName extends Model {
  3.     /**
  4.      * The User that the UserLegalName belongs to
  5.      */
  6.     @OneToOne
  7.     public User user;
  8.  
  9.     /**
  10.      * The users first name
  11.      */
  12.     @Constraints.Required
  13.     public String firstName;
  14.  
  15.     /**
  16.      * The users last name
  17.      */
  18.     @Constraints.Required
  19.     public String lastName;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement