| 
  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CluResult | Line # 43 | 14 | 0% | 14 | 0 | 100% | 
1.0
 | 
                
                                    |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (29) | |||
| Result | |||
| 
            1.0
                         | 
        
            org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluResult_RemoveAllCluResultOptions
             
            org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluResult_RemoveAllCluResultOptions
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateBaccCredentialProgram
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateBaccCredentialProgram
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateCluResult
             
            org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateCluResult
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
             
            org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluResult
             
            org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluResult
         | 
        1 PASS | |
| 
            1.0
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline
         | 
        1 PASS | |
| 
            0.85714287
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline
         | 
        1 PASS | |
| 
            0.85714287
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule
         | 
        1 PASS | |
| 
            0.85714287
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline
         | 
        1 PASS | |
| 
            0.85714287
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline
         | 
        1 PASS | |
| 
            0.5
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline
         | 
        1 PASS | |
| 
            0.5
                         | 
        
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId
             
            org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId
         | 
        1 PASS | |
| 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.lum.lu.entity; | |
| 17 | ||
| 18 | import java.util.Date; | |
| 19 | import java.util.List; | |
| 20 | ||
| 21 | import javax.persistence.CascadeType; | |
| 22 | import javax.persistence.Column; | |
| 23 | import javax.persistence.Entity; | |
| 24 | import javax.persistence.JoinColumn; | |
| 25 | import javax.persistence.JoinTable; | |
| 26 | import javax.persistence.ManyToOne; | |
| 27 | import javax.persistence.NamedQueries; | |
| 28 | import javax.persistence.NamedQuery; | |
| 29 | import javax.persistence.OneToMany; | |
| 30 | import javax.persistence.Table; | |
| 31 | import javax.persistence.Temporal; | |
| 32 | import javax.persistence.TemporalType; | |
| 33 | ||
| 34 | import org.kuali.student.common.entity.MetaEntity; | |
| 35 | ||
| 36 | @Entity | |
| 37 | @Table(name = "KSLU_CLU_RSLT") | |
| 38 | @NamedQueries( { | |
| 39 | @NamedQuery(name = "CluResult.getCluResultByCluId", query = "SELECT cr FROM CluResult cr WHERE cr.clu.id = :cluId"), | |
| 40 | @NamedQuery(name = "CluResult.getCluIdByResultUsageType", query = "SELECT cr.clu.id FROM CluResult cr INNER JOIN cr.resultOptions res WHERE res.resultUsageType = :resultUsageType"), | |
| 41 | @NamedQuery(name = "CluResult.getCluIdByResultComponentId", query = "SELECT cr.clu.id FROM CluResult cr INNER JOIN cr.resultOptions res WHERE res.resultComponentId = :resultComponentId") | |
| 42 | }) | |
| 43 | public class CluResult extends MetaEntity { | |
| 44 | ||
| 45 | @ManyToOne(cascade=CascadeType.ALL) | |
| 46 | @JoinColumn(name = "RT_DESCR_ID") | |
| 47 | private LuRichText desc; | |
| 48 | ||
| 49 | @Temporal(TemporalType.TIMESTAMP) | |
| 50 | @Column(name = "EFF_DT") | |
| 51 | private Date effectiveDate; | |
| 52 | ||
| 53 | @Temporal(TemporalType.TIMESTAMP) | |
| 54 | @Column(name = "EXPIR_DT") | |
| 55 | private Date expirationDate; | |
| 56 | ||
| 57 | @ManyToOne | |
| 58 | @JoinColumn(name = "CLU_ID") | |
| 59 | private Clu clu; | |
| 60 | ||
| 61 | @OneToMany(cascade=CascadeType.ALL) | |
| 62 | @JoinTable(name = "KSLU_CLURES_JN_RESOPT", joinColumns = @JoinColumn(name = "CLU_RES_ID"), inverseJoinColumns = @JoinColumn(name = "RES_OPT_ID")) | |
| 63 | private List<ResultOption> resultOptions; | |
| 64 | ||
| 65 | @ManyToOne | |
| 66 | @JoinColumn(name="TYPE_KEY_ID") | |
| 67 | private CluResultType cluResultType; | |
| 68 | ||
| 69 | @Column(name = "ST") | |
| 70 | private String state; | |
| 71 | ||
| 72 | 241 | 
           public LuRichText getDesc() {     | 
  
| 73 | 241 | return desc; | 
| 74 | } | |
| 75 | ||
| 76 | 110 | 
           public void setDesc(LuRichText desc) {     | 
  
| 77 | 110 | this.desc = desc; | 
| 78 | } | |
| 79 | ||
| 80 | 241 | 
           public Date getEffectiveDate() {     | 
  
| 81 | 241 | return effectiveDate; | 
| 82 | } | |
| 83 | ||
| 84 | 110 | 
           public void setEffectiveDate(Date effectiveDate) {     | 
  
| 85 | 110 | this.effectiveDate = effectiveDate; | 
| 86 | } | |
| 87 | ||
| 88 | 241 | 
           public Date getExpirationDate() {     | 
  
| 89 | 241 | return expirationDate; | 
| 90 | } | |
| 91 | ||
| 92 | 110 | 
           public void setExpirationDate(Date expirationDate) {     | 
  
| 93 | 110 | this.expirationDate = expirationDate; | 
| 94 | } | |
| 95 | ||
| 96 | 241 | 
           public Clu getClu() {     | 
  
| 97 | 241 | return clu; | 
| 98 | } | |
| 99 | ||
| 100 | 89 | 
           public void setClu(Clu clu) {     | 
  
| 101 | 89 | this.clu = clu; | 
| 102 | } | |
| 103 | ||
| 104 | 310 | 
           public List<ResultOption> getResultOptions() {     | 
  
| 105 | 310 | return resultOptions; | 
| 106 | } | |
| 107 | ||
| 108 | 89 | 
           public void setResultOptions(List<ResultOption> resultOptions) {     | 
  
| 109 | 89 | this.resultOptions = resultOptions; | 
| 110 | } | |
| 111 | ||
| 112 | 241 | 
           public CluResultType getCluResultType() {     | 
  
| 113 | 241 | return cluResultType; | 
| 114 | } | |
| 115 | ||
| 116 | 110 | 
           public void setCluResultType(CluResultType type) {     | 
  
| 117 | 110 | this.cluResultType = type; | 
| 118 | } | |
| 119 | ||
| 120 | 241 | 
           public String getState() {     | 
  
| 121 | 241 | return state; | 
| 122 | } | |
| 123 | ||
| 124 | 110 | 
           public void setState(String state) {     | 
  
| 125 | 110 | this.state = state; | 
| 126 | } | |
| 127 | ||
| 128 | } | |
  | 
||||||||||||