Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. @Entity
  2. @Table(name="allowed_user")
  3. public class AllowedUser implements Serializable
  4. {
  5.     private static final long serialVersionUID = 1L;
  6.  
  7.     @Id
  8.     private BigInteger id;
  9.    
  10.     @OneToOne @MapsId
  11.     private User user;
  12.  
  13.     public AllowedUser()
  14.     {
  15.        
  16.     }
  17.  
  18.     public BigInteger getId()
  19.     {
  20.         return this.id;
  21.     }
  22.  
  23.     public void setId(final BigInteger id)
  24.     {
  25.         this.id = id;
  26.     }
  27.    
  28.     public User getUser()
  29.     {
  30.         return this.user;
  31.     }
  32.    
  33.     public void setUser(final User user)
  34.     {
  35.         this.user = user;
  36.     }
  37. }
Add Comment
Please, Sign In to add comment