Coverage Report - org.kuali.student.r2.common.model.StateProcessRelationEntity
 
Classes in this File Line Coverage Branch Coverage Complexity
StateProcessRelationEntity
0%
0/10
N/A
1
 
 1  
 package org.kuali.student.r2.common.model;
 2  
 
 3  
 import javax.persistence.Entity;
 4  
 import javax.persistence.JoinColumn;
 5  
 import javax.persistence.ManyToOne;
 6  
 import javax.persistence.NamedQueries;
 7  
 import javax.persistence.NamedQuery;
 8  
 import javax.persistence.Table;
 9  
 
 10  
 import org.kuali.student.r2.common.entity.MetaEntity;
 11  
 import org.kuali.student.r2.core.class1.state.model.StateEntity;
 12  
 
 13  
 
 14  
 @Entity
 15  
 @Table(name = "KSEN_STATEPROCESS_RELTN")
 16  
 @NamedQueries({
 17  
         @NamedQuery(name="StateProcess.getInitialValidStates", query="select spr.nextState from StateProcessRelationEntity spr where spr.priorState.id is null and spr.process.id=:processKey"),
 18  
         @NamedQuery(name="StateProcess.getNextHappyState", query="select spr.nextState from StateProcessRelationEntity spr where spr.priorState.id=:stateKey and spr.process.id=:processKey")
 19  
 })
 20  0
 public class StateProcessRelationEntity extends MetaEntity {
 21  
         @ManyToOne
 22  
     @JoinColumn(name="PROCESS_KEY")
 23  
     private StateProcessEntity process;
 24  
     
 25  
         @ManyToOne
 26  
     @JoinColumn(name="PRIOR_STATEKEY")
 27  
     private StateEntity priorState;
 28  
 
 29  
         @ManyToOne
 30  
     @JoinColumn(name="NEXT_STATEKEY")
 31  
     private StateEntity nextState;
 32  
 
 33  
         public StateEntity getPriorState() {
 34  0
                 return priorState;
 35  
         }
 36  
 
 37  
         public void setPriorState(StateEntity priorState) {
 38  0
                 this.priorState = priorState;
 39  0
         }
 40  
 
 41  
         public StateProcessEntity getProcess() {
 42  0
                 return process;
 43  
         }
 44  
 
 45  
         public void setProcess(StateProcessEntity process) {
 46  0
                 this.process = process;
 47  0
         }
 48  
 
 49  
         public StateEntity getNextState() {
 50  0
                 return nextState;
 51  
         }
 52  
 
 53  
         public void setNextState(StateEntity nextState) {
 54  0
                 this.nextState = nextState;
 55  0
         }        
 56  
 }