Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name="allowed_user")
- public class AllowedUser implements Serializable
- {
- private static final long serialVersionUID = 1L;
- @Id
- private BigInteger id;
- @OneToOne @MapsId
- private User user;
- public AllowedUser()
- {
- }
- public BigInteger getId()
- {
- return this.id;
- }
- public void setId(final BigInteger id)
- {
- this.id = id;
- }
- public User getUser()
- {
- return this.user;
- }
- public void setUser(final User user)
- {
- this.user = user;
- }
- }
Add Comment
Please, Sign In to add comment