1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.mobility.user.entity; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
|
20 | |
import javax.persistence.Basic; |
21 | |
import javax.persistence.Column; |
22 | |
import javax.persistence.Entity; |
23 | |
import javax.persistence.FetchType; |
24 | |
import javax.persistence.GeneratedValue; |
25 | |
import javax.persistence.GenerationType; |
26 | |
import javax.persistence.Id; |
27 | |
import javax.persistence.JoinColumn; |
28 | |
import javax.persistence.OneToOne; |
29 | |
import javax.persistence.Table; |
30 | |
import javax.persistence.Version; |
31 | |
|
32 | |
@Entity |
33 | |
@Table(name="KME_USR_PRF_VAL_T") |
34 | 0 | public class UserPreferenceValue implements Serializable { |
35 | |
|
36 | |
private static final long serialVersionUID = -4767899922710427387L; |
37 | |
|
38 | |
@Id |
39 | |
@GeneratedValue(strategy = GenerationType.TABLE) |
40 | |
@Column(name="ID") |
41 | |
private Long preferenceValueId; |
42 | |
|
43 | |
@Column(name="VAL") |
44 | |
private String value; |
45 | |
|
46 | |
@Basic |
47 | |
@Column(name="PRF_ID", insertable=false, updatable=false) |
48 | |
private Long preferenceId; |
49 | |
|
50 | |
@OneToOne(fetch=FetchType.LAZY) |
51 | |
@JoinColumn( |
52 | |
name="PRF_ID", nullable=false |
53 | |
) |
54 | |
protected UserPreference preference; |
55 | |
|
56 | |
@Version |
57 | |
@Column(name="VER_NBR") |
58 | |
protected Long versionNumber; |
59 | |
|
60 | |
public Long getVersionNumber() { |
61 | 0 | return versionNumber; |
62 | |
} |
63 | |
|
64 | |
public void setVersionNumber(Long versionNumber) { |
65 | 0 | this.versionNumber = versionNumber; |
66 | 0 | } |
67 | |
|
68 | |
public Long getPreferenceId() { |
69 | 0 | return preferenceId; |
70 | |
} |
71 | |
|
72 | |
public void setPreferenceId(Long preferenceId) { |
73 | 0 | this.preferenceId = preferenceId; |
74 | 0 | } |
75 | |
|
76 | |
public String getValue() { |
77 | 0 | return value; |
78 | |
} |
79 | |
|
80 | |
public void setValue(String value) { |
81 | 0 | this.value = value; |
82 | 0 | } |
83 | |
|
84 | |
public Long getPreferenceValueId() { |
85 | 0 | return preferenceValueId; |
86 | |
} |
87 | |
|
88 | |
public void setPreferenceValueId(Long preferenceValueId) { |
89 | 0 | this.preferenceValueId = preferenceValueId; |
90 | 0 | } |
91 | |
|
92 | |
public UserPreference getPreference() { |
93 | 0 | return preference; |
94 | |
} |
95 | |
|
96 | |
public void setPreference(UserPreference preference) { |
97 | 0 | this.preference = preference; |
98 | 0 | } |
99 | |
|
100 | |
} |