Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KimEntityResidencyImpl |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kim.bo.entity.impl; | |
17 | ||
18 | import org.hibernate.annotations.GenericGenerator; | |
19 | import org.hibernate.annotations.Parameter; | |
20 | import org.kuali.rice.kim.bo.entity.KimEntityResidency; | |
21 | ||
22 | import javax.persistence.*; | |
23 | ||
24 | /** | |
25 | * This class is used to store residency information about an entity. | |
26 | * | |
27 | * @author Kuali Rice Team (kuali-rice@googlegroups.com) | |
28 | * | |
29 | */ | |
30 | @Entity | |
31 | @Table(name = "KRIM_ENTITY_RESIDENCY_T") | |
32 | 0 | public class KimEntityResidencyImpl extends KimEntityDataBase implements KimEntityResidency { |
33 | ||
34 | private static final long serialVersionUID = 6577601907062646925L; | |
35 | ||
36 | @Id | |
37 | @GeneratedValue(generator="KRIM_ENTITY_RESIDENCY_ID_S") | |
38 | @GenericGenerator(name="KRIM_ENTITY_RESIDENCY_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={ | |
39 | @Parameter(name="sequence_name",value="KRIM_ENTITY_RESIDENCY_ID_S"), | |
40 | @Parameter(name="value_column",value="id") | |
41 | }) | |
42 | @Column(name = "ID") | |
43 | private String id; | |
44 | ||
45 | @Column(name = "ENTITY_ID") | |
46 | private String entityId; | |
47 | ||
48 | @Column(name = "DETERMINATION_METHOD") | |
49 | private String determinationMethod; | |
50 | ||
51 | @Column(name = "IN_STATE") | |
52 | private String inStateFlag; | |
53 | ||
54 | /** | |
55 | * @param inStateFlag the inStateFlag to set | |
56 | */ | |
57 | public void setInStateFlag(String inStateFlag) { | |
58 | 0 | this.inStateFlag = inStateFlag; |
59 | 0 | } |
60 | ||
61 | /** | |
62 | * @param id the id to set | |
63 | */ | |
64 | public void setId(String id) { | |
65 | 0 | this.id = id; |
66 | 0 | } |
67 | ||
68 | /** | |
69 | * @param entityId the entityId to set | |
70 | */ | |
71 | public void setEntityId(String entityId) { | |
72 | 0 | this.entityId = entityId; |
73 | 0 | } |
74 | ||
75 | /** | |
76 | * @param determinationMethod the determinationMethod to set | |
77 | */ | |
78 | public void setDeterminationMethod(String determinationMethod) { | |
79 | 0 | this.determinationMethod = determinationMethod; |
80 | 0 | } |
81 | ||
82 | /** | |
83 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getDeterminationMethod() | |
84 | */ | |
85 | public String getDeterminationMethod() { | |
86 | 0 | return determinationMethod; |
87 | } | |
88 | ||
89 | /** | |
90 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getEntityId() | |
91 | */ | |
92 | public String getEntityId() { | |
93 | 0 | return entityId; |
94 | } | |
95 | ||
96 | /** | |
97 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getId() | |
98 | */ | |
99 | public String getId() { | |
100 | 0 | return id; |
101 | } | |
102 | ||
103 | /** | |
104 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getInState() | |
105 | */ | |
106 | public String getInState() { | |
107 | 0 | return inStateFlag; |
108 | } | |
109 | } |