| 1 | |
package org.kuali.student.enrollment.lpr.model; |
| 2 | |
|
| 3 | |
import javax.persistence.*; |
| 4 | |
|
| 5 | |
import org.kuali.student.common.infc.AttributeInfc; |
| 6 | |
import org.kuali.student.common.infc.MetaInfc; |
| 7 | |
import org.kuali.student.enrollment.lpr.dto.LuiPersonRelationInfo; |
| 8 | |
import org.kuali.student.enrollment.lpr.infc.LuiPersonRelationInfc; |
| 9 | |
|
| 10 | |
import java.io.Serializable; |
| 11 | |
import java.util.Date; |
| 12 | |
import java.util.List; |
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
@Entity |
| 18 | 0 | public class LuiPersonRelation implements Serializable { |
| 19 | |
private static final long serialVersionUID = -8711908979901134064L; |
| 20 | |
|
| 21 | |
@Id |
| 22 | |
@GeneratedValue |
| 23 | |
private Long id; |
| 24 | |
|
| 25 | |
private String personId; |
| 26 | |
|
| 27 | |
private String luiId; |
| 28 | |
|
| 29 | |
@Temporal(TemporalType.DATE) |
| 30 | |
private Date effectiveDate; |
| 31 | |
|
| 32 | |
@Temporal(TemporalType.DATE) |
| 33 | |
private Date expirationDate; |
| 34 | |
|
| 35 | |
@ManyToOne(cascade = CascadeType.ALL) |
| 36 | |
private LuiPersonRelationType personRelationType; |
| 37 | |
|
| 38 | |
@ManyToOne(cascade = CascadeType.ALL) |
| 39 | |
private LuiPersonRelationState personRelationState; |
| 40 | |
|
| 41 | |
@OneToMany(cascade = CascadeType.ALL) |
| 42 | |
@JoinColumn(name = "lui_person_relation_id") |
| 43 | |
private List<DynamicAttribute> attributes; |
| 44 | |
|
| 45 | |
public Long getId() { |
| 46 | 0 | return id; |
| 47 | |
} |
| 48 | |
|
| 49 | |
public void setId(Long id) { |
| 50 | 0 | this.id = id; |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
public String getPersonId() { |
| 54 | 0 | return personId; |
| 55 | |
} |
| 56 | |
|
| 57 | |
public void setPersonId(String personId) { |
| 58 | 0 | this.personId = personId; |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
public String getLuiId() { |
| 62 | 0 | return luiId; |
| 63 | |
} |
| 64 | |
|
| 65 | |
public void setLuiId(String luiId) { |
| 66 | 0 | this.luiId = luiId; |
| 67 | 0 | } |
| 68 | |
|
| 69 | |
public Date getEffectiveDate() { |
| 70 | 0 | return effectiveDate; |
| 71 | |
} |
| 72 | |
|
| 73 | |
public void setEffectiveDate(Date effectiveDate) { |
| 74 | 0 | this.effectiveDate = effectiveDate; |
| 75 | 0 | } |
| 76 | |
|
| 77 | |
public Date getExpirationDate() { |
| 78 | 0 | return expirationDate; |
| 79 | |
} |
| 80 | |
|
| 81 | |
public void setExpirationDate(Date expirationDate) { |
| 82 | 0 | this.expirationDate = expirationDate; |
| 83 | 0 | } |
| 84 | |
|
| 85 | |
public LuiPersonRelationType getPersonRelationType() { |
| 86 | 0 | return personRelationType; |
| 87 | |
} |
| 88 | |
|
| 89 | |
public void setPersonRelationType(LuiPersonRelationType personRelationType) { |
| 90 | 0 | this.personRelationType = personRelationType; |
| 91 | 0 | } |
| 92 | |
|
| 93 | |
public LuiPersonRelationState getPersonRelationState() { |
| 94 | 0 | return personRelationState; |
| 95 | |
} |
| 96 | |
|
| 97 | |
public void setPersonRelationState(LuiPersonRelationState personRelationState) { |
| 98 | 0 | this.personRelationState = personRelationState; |
| 99 | 0 | } |
| 100 | |
|
| 101 | |
public List<DynamicAttribute> getDynamicAttributes() { |
| 102 | 0 | return attributes; |
| 103 | |
} |
| 104 | |
|
| 105 | |
public void setDynamicAttributes(List<DynamicAttribute> dynamicAttributes) { |
| 106 | 0 | this.attributes = dynamicAttributes; |
| 107 | 0 | } |
| 108 | |
|
| 109 | |
public LuiPersonRelationInfc toDto() { |
| 110 | 0 | LuiPersonRelationInfo.Builder builder = new LuiPersonRelationInfo.Builder(); |
| 111 | 0 | return new LuiPersonRelationInfo.Builder().build(); |
| 112 | |
} |
| 113 | |
} |