1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.security.user.entity;
16
17 import org.kuali.mobility.security.user.api.User;
18
19 import javax.persistence.*;
20
21
22
23
24 @Entity(name="UserAttributes")
25 @Table(name="KME_USER_ATTRIBUTE_T")
26 public class UserAttribute {
27
28 @Id
29 @GeneratedValue(strategy = GenerationType.TABLE)
30 @Column(name="ID", nullable = false)
31 private Long id;
32 @Column(name="ATTRIBUTE_NM", nullable = false)
33 private String attributeName;
34 @Column(name="ATTRIBUTE_X", nullable = false)
35 private String attributeValue;
36
37 @ManyToOne(targetEntity = UserImpl.class)
38 @JoinColumn(name="USER_ID")
39 private User user;
40
41 public Long getId() {
42 return id;
43 }
44
45 public void setId(Long Id) {
46 this.id = Id;
47 }
48
49 public String getAttributeName() {
50 return attributeName;
51 }
52
53 public void setAttributeName(String attributeName) {
54 this.attributeName = attributeName;
55 }
56
57 public String getAttributeValue() {
58 return attributeValue;
59 }
60
61 public void setAttributeValue(String attributeValue) {
62 this.attributeValue = attributeValue;
63 }
64
65 public User getUser() {
66 return user;
67 }
68
69 public void setUser(User user) {
70 this.user = user;
71 }
72 }