-
Notifications
You must be signed in to change notification settings - Fork 1
/
ExtUser.java
36 lines (26 loc) · 834 Bytes
/
ExtUser.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.company.extuser.entity;
import com.haulmont.cuba.core.entity.annotation.Extends;
import com.haulmont.cuba.security.entity.User;
import javax.persistence.*;
@Extends(User.class)
@Entity(name = "extuser$ExtUser")
public class ExtUser extends User {
private static final long serialVersionUID = 235925420153411489L;
@Column(name = "ADDRESS")
protected String address;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "DEPARTMENT_ID")
protected Department department;
public void setDepartment(Department department) {
this.department = department;
}
public Department getDepartment() {
return department;
}
public void setAddress(String address) {
this.address = address;
}
public String getAddress() {
return address;
}
}