1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
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.kim.api.identity.TypeContract; |
21 | |
import org.kuali.rice.kim.impl.identity.email.EntityEmailTypeBo; |
22 | |
|
23 | |
|
24 | |
import javax.persistence.*; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@IdClass(PersonDocumentEmailId.class) |
33 | |
@Entity |
34 | |
@Table(name = "KRIM_PND_EMAIL_MT") |
35 | |
public class PersonDocumentEmail extends PersonDocumentBoDefaultBase{ |
36 | |
@Id |
37 | |
@GeneratedValue(generator="KRIM_ENTITY_EMAIL_ID_S") |
38 | |
@GenericGenerator(name="KRIM_ENTITY_EMAIL_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={ |
39 | |
@Parameter(name="sequence_name",value="KRIM_ENTITY_EMAIL_ID_S"), |
40 | |
@Parameter(name="value_column",value="id") |
41 | |
}) |
42 | |
@Column(name = "ENTITY_EMAIL_ID") |
43 | |
protected String entityEmailId; |
44 | |
|
45 | |
@Column(name = "ENT_TYP_CD") |
46 | |
protected String entityTypeCode; |
47 | |
|
48 | |
@Column(name = "EMAIL_TYP_CD") |
49 | |
protected String emailTypeCode; |
50 | |
|
51 | |
@Column(name = "EMAIL_ADDR") |
52 | |
protected String emailAddress; |
53 | |
|
54 | |
@ManyToOne(targetEntity=EntityEmailTypeBo.class, fetch = FetchType.EAGER, cascade = {}) |
55 | |
@JoinColumn(name = "EMAIL_TYP_CD", insertable = false, updatable = false) |
56 | |
protected TypeContract emailType; |
57 | |
|
58 | 0 | public PersonDocumentEmail() { |
59 | 0 | this.active = true; |
60 | 0 | } |
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
public String getEmailAddress() { |
66 | 0 | return emailAddress; |
67 | |
} |
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public String getEmailTypeCode() { |
73 | 0 | return emailTypeCode; |
74 | |
} |
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
public String getEntityEmailId() { |
80 | 0 | return entityEmailId; |
81 | |
} |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
public void setEmailAddress(String emailAddress) { |
87 | 0 | this.emailAddress = emailAddress; |
88 | 0 | } |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
public void setEmailTypeCode(String emailTypeCode) { |
94 | 0 | this.emailTypeCode = emailTypeCode; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public String getEntityTypeCode() { |
101 | 0 | return entityTypeCode; |
102 | |
} |
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
public void setEntityTypeCode(String entityTypeCode) { |
108 | 0 | this.entityTypeCode = entityTypeCode; |
109 | 0 | } |
110 | |
|
111 | |
public void setEntityEmailId(String entityEmailId) { |
112 | 0 | this.entityEmailId = entityEmailId; |
113 | 0 | } |
114 | |
|
115 | |
public TypeContract getEmailType() { |
116 | 0 | return this.emailType; |
117 | |
} |
118 | |
|
119 | |
public void setEmailType(TypeContract emailType) { |
120 | 0 | this.emailType = emailType; |
121 | 0 | } |
122 | |
|
123 | |
} |