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