View Javadoc

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