|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LoCategory | Line # 39 | 16 | 0% | 16 | 0 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(29) | |||
Result | |||
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLoCategory org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testLoCategory | 1 PASS | |
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testDisallowLoCategoryDuplication org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testDisallowLoCategoryDuplication | 1 PASS | |
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testUpdateLoCategoryDuplicationCaseInsensitive org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testUpdateLoCategoryDuplicationCaseInsensitive | 1 PASS | |
1.0
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testDisallowLoCategoryDuplicationCaseInsensitive org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testDisallowLoCategoryDuplicationCaseInsensitive | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing | 1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange | 1 PASS | |
0.5
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoCategoriesForLo org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoCategoriesForLo | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions | 1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetProgramRequirement org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetProgramRequirement | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse | 1 PASS | |
0.5
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testAddRemoveLoCategoryToFromLo org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testAddRemoveLoCategoryToFromLo | 1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning | 1 PASS | |
0.5
|
org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoCategories org.kuali.student.lum.lo.service.impl.TestLearningObjectiveServiceImpl.testGetLoCategories | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion | 1 PASS | |
0.5
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning | 1 PASS | |
0.5
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse | 1 PASS | |
0.0625
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes | 1 PASS | |
0.0625
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline | 1 PASS | |
0.0625
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule | 1 PASS | |
0.0625
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse | 1 PASS | |
0.0625
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram | 1 PASS | |
0.0625
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram | 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 | /** | |
35 | * @author Kuali Student Team | |
36 | */ | |
37 | @Entity | |
38 | @Table(name = "KSLO_LO_CATEGORY") | |
39 | public class LoCategory extends MetaEntity implements AttributeOwner<LoCategoryAttribute> { | |
40 | ||
41 | @Column(name = "NAME") | |
42 | private | |
43 | String name; | |
44 | ||
45 | @ManyToOne(cascade = CascadeType.ALL) | |
46 | @JoinColumn(name = "RT_DESCR_ID") | |
47 | private LoRichText descr; | |
48 | ||
49 | @ManyToOne | |
50 | @JoinColumn(name = "LO_REPO_ID") | |
51 | private LoRepository loRepository; | |
52 | ||
53 | @ManyToOne | |
54 | @JoinColumn(name = "LO_CATEGORY_TYPE_ID") | |
55 | private LoCategoryType loCategoryType; | |
56 | ||
57 | @Column(name="STATE") | |
58 | private String state; | |
59 | ||
60 | @Temporal(TemporalType.TIMESTAMP) | |
61 | @Column(name = "EFF_DT") | |
62 | private Date effectiveDate; | |
63 | ||
64 | @Temporal(TemporalType.TIMESTAMP) | |
65 | @Column(name = "EXPIR_DT") | |
66 | private Date expirationDate; | |
67 | ||
68 | @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | |
69 | private List<LoCategoryAttribute> attributes; | |
70 | ||
71 | /** | |
72 | * @param name the name to set | |
73 | */ | |
74 | 5 | public void setName(String name) { |
75 | 5 | this.name = name; |
76 | } | |
77 | ||
78 | /** | |
79 | * @return the name | |
80 | */ | |
81 | 800 | public String getName() { |
82 | 800 | return name; |
83 | } | |
84 | ||
85 | 800 | public LoRichText getDescr() { |
86 | 800 | return descr; |
87 | } | |
88 | ||
89 | 5 | public void setDesc(LoRichText descr) { |
90 | 5 | this.descr = descr; |
91 | } | |
92 | ||
93 | /** | |
94 | * @param loRepository the loRepository to set | |
95 | */ | |
96 | 9 | public void setLoRepository(LoRepository loRepository) { |
97 | 9 | this.loRepository = loRepository; |
98 | } | |
99 | ||
100 | /** | |
101 | * @return the loRepository | |
102 | */ | |
103 | 2093 | public LoRepository getLoRepository() { |
104 | 2093 | return loRepository; |
105 | } | |
106 | ||
107 | 801 | public LoCategoryType getLoCategoryType() { |
108 | 801 | return loCategoryType; |
109 | } | |
110 | ||
111 | 9 | public void setLoCategoryType(LoCategoryType loCategoryType) { |
112 | 9 | this.loCategoryType = loCategoryType; |
113 | } | |
114 | ||
115 | 6 | public void setState(String state) { |
116 | 6 | this.state = state; |
117 | } | |
118 | ||
119 | 801 | public String getState() { |
120 | 801 | return state; |
121 | } | |
122 | ||
123 | 800 | public Date getEffectiveDate() { |
124 | 800 | return effectiveDate; |
125 | } | |
126 | ||
127 | 5 | public void setEffectiveDate(Date effectiveDate) { |
128 | 5 | this.effectiveDate = effectiveDate; |
129 | } | |
130 | ||
131 | 800 | public Date getExpirationDate() { |
132 | 800 | return expirationDate; |
133 | } | |
134 | ||
135 | 5 | public void setExpirationDate(Date expirationDate) { |
136 | 5 | this.expirationDate = expirationDate; |
137 | } | |
138 | ||
139 | /* (non-Javadoc) | |
140 | * @see org.kuali.student.common.entity.AttributeOwner#getAttributes() | |
141 | */ | |
142 | 815 | @Override |
143 | public List<LoCategoryAttribute> getAttributes() { | |
144 | 815 | return attributes; |
145 | } | |
146 | ||
147 | /* (non-Javadoc) | |
148 | * @see org.kuali.student.common.entity.AttributeOwner#setAttributes(java.util.List) | |
149 | */ | |
150 | 10 | @Override |
151 | public void setAttributes(List<LoCategoryAttribute> attributes) { | |
152 | 10 | this.attributes = attributes; |
153 | } | |
154 | } |
|