1 | public class User {↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String userName;↵ | | |
|
4 | private Human human;↵ | | |
|
5 | private List permissions;↵ | | |
|
|
6 | public Long getId↵ | | 3 | String name;↵
|
| | | 4 | private Date dob;↵
|
| | | 5 | private Employee employee;↵
|
| | | 6 | private Customer customer;↵
|
7 | () {↵ | | 7 | public Customer getCustomer() {↵
|
8 | return id;↵ | | 8 | return customer;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void setId(Long id) {↵ | | 10 | public void set↵
|
11 | this.id = id↵ | | 11 | Customer(Customer customer) {↵
|
12 | ;↵ | | 12 | this.customer = customer;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public String getUserName() {↵ | | 14 | public Employee getEmployee() {↵
|
15 | return userName;↵ | | 15 | return employee;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void setUserName(String userName) {↵ | | 17 | public void setEmployee(Employee employee) {↵
|
18 | this.userName = userName;↵ | | 18 | this.employee = employee;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public Human getHuman() {↵ | | 20 | public String getName() {↵
|
21 | return human;↵ | | 21 | return name;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | public void setHuman(Human human) {↵ | | 23 | public void set↵
|
24 | this.human = human↵ | | 24 | Name(String name) {↵
|
25 | ;↵ | | 25 | this.name = name;↵
|
26 | }↵ | | 26 | }↵
|
|
27 | public List getPermissions() {↵ | | 27 | public Date getDob() {↵
|
28 | return permissions;↵ | | 28 | return dob;↵
|
29 | }↵ | | 29 | }↵
|
30 | ↵ | | 30 | ↵
|
|
31 | public void setPermissions(List permissions) {↵ | | 31 | public void set↵
|
32 | this.permissions = permissions | | 32 | Dob(Date dob) {↵
|
| | | 33 | this.dob = dob
|