Coverage Report - org.kuali.mobility.user.entity.UserPreferenceValue
 
Classes in this File Line Coverage Branch Coverage Complexity
UserPreferenceValue
0%
0/16
N/A
1
 
 1  
 /**
 2  
  * Copyright 2011 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  
 
 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  
 }