View Javadoc

1   /**
2    * Copyright 2005-2013 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.ui;
17  
18  import org.hibernate.annotations.GenericGenerator;
19  import org.hibernate.annotations.Parameter;
20  import org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase;
21  
22  import javax.persistence.Column;
23  import javax.persistence.GeneratedValue;
24  import javax.persistence.Id;
25  
26  /**
27   * This is a description of what this class does - jksmith don't forget to fill this in. 
28   * 
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   *
31   */
32  public class PersonDocumentAffiliationId extends CompositePrimaryKeyBase {
33  	@Id
34      @Column(name="FDOC_NBR")
35      protected String documentNumber;
36  	
37  	@Id
38  	@GeneratedValue(generator="KRIM_ENTITY_AFLTN_ID_S")
39  	@GenericGenerator(name="KRIM_ENTITY_AFLTN_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
40  			@Parameter(name="sequence_name",value="KRIM_ENTITY_AFLTN_ID_S"),
41  			@Parameter(name="value_column",value="id")
42  		})
43  	@Column(name = "ENTITY_AFLTN_ID")
44  	protected String entityAffiliationId;
45  
46  	/**
47  	 * @return the documentNumber
48  	 */
49  	public String getDocumentNumber() {
50  		return this.documentNumber;
51  	}
52  
53  	/**
54  	 * @return the delegationId
55  	 */
56  	public String getEntityAffiliationId() {
57  		return this.entityAffiliationId;
58  	}
59  }