View Javadoc

1   /*
2    * Copyright 2007-2008 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.role.impl;
17  
18  import java.util.LinkedHashMap;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Entity;
22  import javax.persistence.Table;
23  
24  import org.kuali.rice.kim.bo.types.impl.KimAttributeDataImpl;
25  
26  /**
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  @Entity
30  @Table(name="KRIM_RSP_ATTR_DATA_T")
31  public class ResponsibilityAttributeDataImpl extends KimAttributeDataImpl {
32      @Column(name="RSP_ID")
33      protected String responsibilityId;
34  
35      public String getResponsibilityId() {
36          return this.responsibilityId;
37      }
38  
39      public void setResponsibilityId(String responsibilityId) {
40          this.responsibilityId = responsibilityId;
41      }
42  
43      /**
44       * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
45       */
46      @SuppressWarnings("unchecked")
47      @Override
48      protected LinkedHashMap toStringMapper() {
49          LinkedHashMap m = new LinkedHashMap();
50          m.put( "attrDataId", getAttributeDataId() );
51          m.put( "responsibilityId", responsibilityId );
52          m.put( "kimTypeId", getKimTypeId() );
53          m.put( "kimAttributeId", getKimAttributeId() );
54          m.put( "attributeValue", getAttributeValue() );
55          return m;
56      }
57  }