Coverage Report - org.kuali.student.core.proposal.entity.ProposalOrg
 
Classes in this File Line Coverage Branch Coverage Complexity
ProposalOrg
0%
0/7
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 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.student.core.proposal.entity;
 17  
 
 18  
 import javax.persistence.AttributeOverride;
 19  
 import javax.persistence.Column;
 20  
 import javax.persistence.Entity;
 21  
 import javax.persistence.JoinColumn;
 22  
 import javax.persistence.ManyToOne;
 23  
 import javax.persistence.NamedQueries;
 24  
 import javax.persistence.NamedQuery;
 25  
 import javax.persistence.Table;
 26  
 
 27  
 import org.kuali.student.core.entity.BaseEntity;
 28  
 
 29  
 /**
 30  
  * This is a description of what this class does - lindholm don't forget to fill this in.
 31  
  *
 32  
  * @author Kuali Rice Team (kuali-rice@googlegroups.com)
 33  
  *
 34  
  */
 35  
 @Entity
 36  
 @Table(name = "KSPR_PROPOSAL_JN_ORG")
 37  
 @NamedQueries( {
 38  
     @NamedQuery(name = "ProposalOrg.getProposalOrg", query = "SELECT p FROM ProposalOrg p WHERE p.orgId = :orgId")
 39  
 })
 40  
 @AttributeOverride(name="id", column=@Column(name="ORGREF_ID"))
 41  0
 public class ProposalOrg extends BaseEntity{
 42  
 
 43  
     @Column(name = "ORG_ID")
 44  
     private String orgId; // External service key
 45  
 
 46  
     @ManyToOne
 47  
     @JoinColumn(name = "PROPOSAL_ID")
 48  
     private Proposal proposal;
 49  
 
 50  
     public String getOrgId() {
 51  0
         return orgId;
 52  
     }
 53  
 
 54  
     public void setOrgId(String orgId) {
 55  0
         this.orgId = orgId;
 56  0
     }
 57  
 
 58  
     public Proposal getProposal() {
 59  0
         return proposal;
 60  
     }
 61  
 
 62  
     public void setProposal(Proposal proposal) {
 63  0
         this.proposal = proposal;
 64  0
     }
 65  
 }