Coverage Report - org.kuali.rice.kew.edl.extract.Fields
 
Classes in this File Line Coverage Branch Coverage Complexity
Fields
0%
0/19
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.rice.kew.edl.extract;
 18  
 
 19  
 import javax.persistence.CascadeType;
 20  
 import javax.persistence.Column;
 21  
 import javax.persistence.Entity;
 22  
 import javax.persistence.FetchType;
 23  
 import javax.persistence.Id;
 24  
 import javax.persistence.JoinColumn;
 25  
 import javax.persistence.ManyToOne;
 26  
 import javax.persistence.PrePersist;
 27  
 import javax.persistence.Table;
 28  
 import javax.persistence.Version;
 29  
 
 30  
 import org.kuali.rice.core.jpa.annotations.Sequence;
 31  
 import org.kuali.rice.core.util.OrmUtils;
 32  
 import org.kuali.rice.kns.service.KNSServiceLocator;
 33  
 
 34  
 /**
 35  
  *
 36  
  *
 37  
  *
 38  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 39  
  *
 40  
  */
 41  
 @Entity
 42  
 @Table(name="KREW_EDL_FLD_DMP_T")
 43  
 @Sequence(name="KREW_EDL_FLD_DMP_T", property="fieldId")
 44  0
 public class Fields {
 45  
 
 46  
         private static final long serialVersionUID = -6136544551121011531L;
 47  
 
 48  
     @Id
 49  
         @Column(name="EDL_FIELD_DMP_ID")
 50  
         private Long fieldId;
 51  
     @Column(name="DOC_HDR_ID")
 52  
         private Long docId;
 53  
     @Column(name="FLD_NM")
 54  
         private String fieldName;
 55  
     @Column(name="FLD_VAL")
 56  
         private String fieldValue;
 57  
     @Version
 58  
         @Column(name="VER_NBR")
 59  
         private Integer lockVerNbr;
 60  
 
 61  
     @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST})
 62  
         @JoinColumn(name="DOC_HDR_ID", insertable=false, updatable=false)
 63  
         private Dump dump;
 64  
 
 65  
     @PrePersist
 66  
     public void beforeInsert(){
 67  0
         OrmUtils.populateAutoIncValue(this, KNSServiceLocator.getEntityManagerFactory().createEntityManager());
 68  0
     }
 69  
 
 70  
 
 71  
         public Long getFieldId() {
 72  0
                 return fieldId;
 73  
         }
 74  
         public Long getDocId() {
 75  0
                 return docId;
 76  
         }
 77  
         public void setDocId(final Long docId) {
 78  0
                 this.docId = docId;
 79  0
         }
 80  
         public String getFieldValue() {
 81  0
                 return fieldValue;
 82  
         }
 83  
         public void setFieldValue(final String fieldValue) {
 84  0
                 this.fieldValue = fieldValue;
 85  0
         }
 86  
         public String getFiledName() {
 87  0
                 return fieldName;
 88  
         }
 89  
         public void setFieldName(final String filedName) {
 90  0
                 this.fieldName = filedName;
 91  0
         }
 92  
         public Integer getLockVerNbr() {
 93  0
                 return lockVerNbr;
 94  
         }
 95  
         public void setLockVerNbr(final Integer lockVerNbr) {
 96  0
                 this.lockVerNbr = lockVerNbr;
 97  0
         }
 98  
         public Dump getDump() {
 99  0
                 return dump;
 100  
         }
 101  
         public void setDump(final Dump dump) {
 102  0
                 this.dump = dump;
 103  0
         }
 104  
 }
 105