Coverage Report - org.kuali.rice.kew.removereplace.WorkgroupTarget
 
Classes in this File Line Coverage Branch Coverage Complexity
WorkgroupTarget
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 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  
 package org.kuali.rice.kew.removereplace;
 17  
 
 18  
 import javax.persistence.CascadeType;
 19  
 import javax.persistence.Column;
 20  
 import javax.persistence.Entity;
 21  
 import javax.persistence.FetchType;
 22  
 import javax.persistence.Id;
 23  
 import javax.persistence.IdClass;
 24  
 import javax.persistence.JoinColumn;
 25  
 import javax.persistence.ManyToOne;
 26  
 import javax.persistence.Table;
 27  
 
 28  
 /**
 29  
  * Represents a target of a remove/replace document.  This will typically be
 30  
  * either a rule or a workgroup
 31  
  *
 32  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 33  
  */
 34  
 @IdClass(org.kuali.rice.kew.removereplace.WorkgroupTargetId.class)
 35  
 @Entity
 36  
 @Table(name="KREW_RMV_RPLC_GRP_T")
 37  0
 public class WorkgroupTarget {
 38  
 
 39  
     @Id
 40  
         @Column(name="DOC_HDR_ID")
 41  
         private Long documentId;
 42  
     @Id
 43  
         @Column(name="GRP_ID")
 44  
         private String workgroupId;
 45  
     
 46  
     // Added for JPA uni-directional one-to-many (not yet supported by JPA)
 47  
     @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.REMOVE})
 48  
     @JoinColumn(name="DOC_HDR_ID")
 49  
     private RemoveReplaceDocument removeReplaceDocument;
 50  
 
 51  
     public Long getDocumentId() {
 52  0
         return this.documentId;
 53  
     }
 54  
 
 55  
     public void setDocumentId(Long documentId) {
 56  0
         this.documentId = documentId;
 57  0
     }
 58  
 
 59  
     public String getWorkgroupId() {
 60  0
         return this.workgroupId;
 61  
     }
 62  
 
 63  
     public void setWorkgroupId(String id) {
 64  0
         this.workgroupId = id;
 65  0
     }
 66  
 
 67  
 }
 68