Coverage Report - org.kuali.student.enrollment.class1.lpr.model.LprTransactionItemResultValueGroupEntity
 
Classes in this File Line Coverage Branch Coverage Complexity
LprTransactionItemResultValueGroupEntity
0%
0/14
N/A
1
 
 1  
 /**
 2  
  * Copyright 2012 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the the Educational Community License, Version 1.0
 5  
  * (the "License"); you may not use this file except in compliance
 6  
  * with the License.  You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.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  
 package org.kuali.student.enrollment.class1.lpr.model;
 17  
 
 18  
 import javax.persistence.Entity;
 19  
 import javax.persistence.JoinColumn;
 20  
 import javax.persistence.ManyToOne;
 21  
 import javax.persistence.Table;
 22  
 import javax.persistence.UniqueConstraint;
 23  
 
 24  
 /**
 25  
  * @author ocleirig
 26  
  * 
 27  
  */
 28  
 @Entity
 29  
 @Table(name = "KSEN_LPR_TRANS_ITEM_RVG", uniqueConstraints = { @UniqueConstraint(columnNames = {
 30  
                 "LPR_TRANS_ITEM_ID", "RESULT_VAL_GRP_ID" }) })
 31  
 public class LprTransactionItemResultValueGroupEntity extends
 32  
                 AbstractResultValueGroupEntity {
 33  
 
 34  
         @ManyToOne
 35  
         @JoinColumn(name = "LPR_TRANS_ITEM_ID", nullable = false)
 36  
         private LprTransactionItemEntity lprTransactionItem;
 37  
 
 38  
         /**
 39  
          * 
 40  
          */
 41  
         public LprTransactionItemResultValueGroupEntity() {
 42  0
                 super();
 43  0
         }
 44  
 
 45  
         public LprTransactionItemResultValueGroupEntity(String value) {
 46  0
                 super(value);
 47  0
         }
 48  
 
 49  
         public LprTransactionItemEntity getLprTransactionItem() {
 50  0
                 return lprTransactionItem;
 51  
         }
 52  
 
 53  
         public void setLprTransactionItem(
 54  
                         LprTransactionItemEntity lprTransactionItem) {
 55  0
                 this.lprTransactionItem = lprTransactionItem;
 56  0
         }
 57  
 
 58  
         @Override
 59  
         public String toString() {
 60  0
                 StringBuilder builder = new StringBuilder();
 61  0
                 builder.append("LprTransactionItemResultValueGroupEntity [id=");
 62  0
                 builder.append(getId());
 63  0
                 builder.append(", resultValueGroupId=");
 64  0
                 builder.append(getResultValueGroupId());
 65  0
                 builder.append("]");
 66  0
                 return builder.toString();
 67  
         }
 68  
 
 69  
         
 70  
 }