Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.inver.productmanager.domain;
- import javax.persistence.*;
- @Entity
- @Table(name = "users")
- public class User{
- @Id
- @GeneratedValue
- @Column(name = "id")
- public Integer getId() { return id; }
- public void setId(Integer id) { this.id = id; }
- private Integer id;
- @Column(name = "fio")
- public String getFio() { return fio; }
- public void setFio(String fio) { this.fio = fio; }
- private String fio;
- @Column(name = "username")
- public String getUsername() { return username; }
- public void setUsername(String username) { this.username = username; }
- private String username;
- @Column(name = "password")
- public String getPassword() { return password; }
- public void setPassword(String password) { this.password = password; }
- private String password;
- @ManyToOne @JoinColumn(name = "selling_point_id")
- public SellingPoint getSellingPoint() { return sellingPoint; }
- public void setSellingPoint(SellingPoint sellingPoint) { this.sellingPoint = sellingPoint; }
- private SellingPoint sellingPoint;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement