View Javadoc

1   /**
2    * Copyright 2011-2013 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
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   * @author Kuali Mobility Team (mobility.collab@kuali.org)
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  }