1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
29
30
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
49
50 public String getDocumentNumber() {
51 return this.documentNumber;
52 }
53
54
55
56
57 public String getEntityAffiliationId() {
58 return this.entityAffiliationId;
59 }
60 }