|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LoLoRelation | Line # 36 | 14 | 0% | 14 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(29) | |||
Result | |||
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testCreateLoLoRelation
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLo
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning
![]() |
1 PASS | |
1.0
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoLoRelation
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline
![]() |
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.lo.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.ManyToOne; | |
26 | import javax.persistence.OneToMany; | |
27 | import javax.persistence.Table; | |
28 | import javax.persistence.Temporal; | |
29 | import javax.persistence.TemporalType; | |
30 | ||
31 | import org.kuali.student.common.entity.AttributeOwner; | |
32 | import org.kuali.student.common.entity.MetaEntity; | |
33 | ||
34 | @Entity | |
35 | @Table(name = "KSLO_LO_RELTN") | |
36 | public class LoLoRelation extends MetaEntity implements AttributeOwner<LoLoRelationAttribute> { | |
37 | ||
38 | @ManyToOne | |
39 | @JoinColumn(name="LO_ID") | |
40 | private Lo lo; | |
41 | ||
42 | @ManyToOne | |
43 | @JoinColumn(name="RELATED_LO_ID") | |
44 | private Lo relatedLo; | |
45 | ||
46 | @ManyToOne | |
47 | @JoinColumn(name="LO_LO_RELATION_TYPE_ID") | |
48 | private LoLoRelationType loLoRelationType; | |
49 | ||
50 | @Column(name = "ST") | |
51 | private String state; | |
52 | ||
53 | @Temporal(TemporalType.TIMESTAMP) | |
54 | @Column(name = "EFF_DT") | |
55 | private Date effectiveDate; | |
56 | ||
57 | @Temporal(TemporalType.TIMESTAMP) | |
58 | @Column(name = "EXPIR_DT") | |
59 | private Date expirationDate; | |
60 | ||
61 | @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | |
62 | private List<LoLoRelationAttribute> attributes; | |
63 | ||
64 | 1108 |
![]() |
65 | 1108 | this.lo = lo; |
66 | } | |
67 | ||
68 | 623 |
![]() |
69 | 623 | return lo; |
70 | } | |
71 | ||
72 | 1108 |
![]() |
73 | 1108 | this.relatedLo = relatedLo; |
74 | } | |
75 | ||
76 | 623 |
![]() |
77 | 623 | return relatedLo; |
78 | } | |
79 | ||
80 | /** | |
81 | * @param effectiveDate the effectiveDate to set | |
82 | */ | |
83 | 554 |
![]() |
84 | 554 | this.effectiveDate = effectiveDate; |
85 | } | |
86 | ||
87 | /** | |
88 | * @return the effectiveDate | |
89 | */ | |
90 | 623 |
![]() |
91 | 623 | return effectiveDate; |
92 | } | |
93 | ||
94 | /** | |
95 | * @param expirationDate the expirationDate to set | |
96 | */ | |
97 | 554 |
![]() |
98 | 554 | this.expirationDate = expirationDate; |
99 | } | |
100 | ||
101 | /** | |
102 | * @return the expirationDate | |
103 | */ | |
104 | 623 |
![]() |
105 | 623 | return expirationDate; |
106 | } | |
107 | ||
108 | 2285 |
![]() |
109 | public List<LoLoRelationAttribute> getAttributes() { | |
110 | 2285 | return attributes; |
111 | } | |
112 | ||
113 | 1108 |
![]() |
114 | public void setAttributes(List<LoLoRelationAttribute> attributes) { | |
115 | 1108 | this.attributes = attributes; |
116 | } | |
117 | ||
118 | 1108 |
![]() |
119 | 1108 | this.loLoRelationType = loLoRelationType; |
120 | } | |
121 | ||
122 | 623 |
![]() |
123 | 623 | return loLoRelationType; |
124 | } | |
125 | ||
126 | 554 |
![]() |
127 | 554 | this.state = state; |
128 | } | |
129 | ||
130 | 623 |
![]() |
131 | 623 | return state; |
132 | } | |
133 | } |
|