|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ContextEntity | Line # 32 | 6 | 0% | 6 | 2 | 83.3% |
0.8333333
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(10) | |||
Result | |||
0.8333333
|
org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testAddEnumeratedValue org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testAddEnumeratedValue | 1 PASS | |
0.8333333
|
org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testRemoveEnumeratedValue org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testRemoveEnumeratedValue | 1 PASS | |
0.8333333
|
org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testFetchEnumeratedValue org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testFetchEnumeratedValue | 1 PASS | |
0.8333333
|
org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testFetchEnumeratedValues org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testFetchEnumeratedValues | 1 PASS | |
0.6666667
|
org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testAutoGenerate org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testAutoGenerate | 1 PASS | |
0.6666667
|
org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testUpdateEnumeratedValue org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testUpdateEnumeratedValue | 1 PASS | |
0.6666667
|
org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testAddEnumeratedValue org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testAddEnumeratedValue | 1 PASS | |
0.5
|
org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testUpdateEnumeratedValue org.kuali.student.core.enumerationmanagement.dao.impl.EnumerationManagementDAOImplTest.testUpdateEnumeratedValue | 1 PASS | |
0.5
|
org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testSetEnumDAO org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testSetEnumDAO | 1 PASS | |
0.33333334
|
org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testRemoveEnumeratedValue org.kuali.student.core.enumerationmanagement.service.impl.EnumerationServiceImplTest.testRemoveEnumeratedValue | 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.core.enumerationmanagement.entity; | |
17 | ||
18 | import java.util.List; | |
19 | ||
20 | import javax.persistence.CascadeType; | |
21 | import javax.persistence.Column; | |
22 | import javax.persistence.Entity; | |
23 | import javax.persistence.FetchType; | |
24 | import javax.persistence.ManyToMany; | |
25 | import javax.persistence.Table; | |
26 | import javax.persistence.UniqueConstraint; | |
27 | ||
28 | import org.kuali.student.common.entity.BaseEntity; | |
29 | ||
30 | @Entity | |
31 | @Table(name="KSEM_CTX_T", uniqueConstraints={@UniqueConstraint(columnNames={"CTX_KEY", "CTX_VAL"})}) | |
32 | public class ContextEntity extends BaseEntity { | |
33 | ||
34 | @Column(name="CTX_KEY") | |
35 | String contextKey; | |
36 | ||
37 | @Column(name="CTX_VAL") | |
38 | String contextValue; | |
39 | ||
40 | @ManyToMany(mappedBy="contextEntityList", fetch = FetchType.LAZY,cascade = CascadeType.ALL) | |
41 | List<EnumeratedValue> enumeratedValueList; | |
42 | ||
43 | 234 | public String getContextKey() { |
44 | 234 | return contextKey; |
45 | } | |
46 | ||
47 | 219 | public void setContextKey(String type) { |
48 | 219 | this.contextKey = type; |
49 | } | |
50 | ||
51 | 234 | public String getContextValue() { |
52 | 234 | return contextValue; |
53 | } | |
54 | ||
55 | 219 | public void setContextValue(String value) { |
56 | 219 | this.contextValue = value; |
57 | } | |
58 | ||
59 | 0 | public List<EnumeratedValue> getEnumeratedValueList() { |
60 | 0 | return enumeratedValueList; |
61 | } | |
62 | 15 | public void setEnumeratedValueList( |
63 | List<EnumeratedValue> enumeratedValueList) { | |
64 | 15 | this.enumeratedValueList = enumeratedValueList; |
65 | } | |
66 | ||
67 | } |
|