View Javadoc
1   package org.kuali.ole.deliver.bo;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import javax.persistence.CascadeType;
6   import javax.persistence.Column;
7   import javax.persistence.Entity;
8   import javax.persistence.GeneratedValue;
9   import javax.persistence.Id;
10  import javax.persistence.JoinColumn;
11  import javax.persistence.OneToMany;
12  import javax.persistence.Table;
13  import javax.persistence.Transient;
14  import org.kuali.ole.deliver.bo.OleFixedDateTimeSpan;
15  import org.kuali.rice.krad.bo.DataObjectBase;
16  import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
17  
18  /**
19   * Created with IntelliJ IDEA.
20   * User: ?
21   * Date: 12/18/12
22   * Time: 6:53 PM
23   * To change this template use File | Settings | File Templates.
24   */
25  @Entity
26  @Table(name = "OLE_DLVR_FIXED_DUE_DATE_T")
27  public class OleFixedDueDate extends DataObjectBase {
28  
29      @Column(name = "CIRCULATION_POLICY_SET_ID")
30      private String circulationPolicySetId;
31  
32      @PortableSequenceGenerator(name = "OLE_DLVR_FIXED_DUE_DATE_S")
33      @GeneratedValue(generator = "OLE_DLVR_FIXED_DUE_DATE_S")
34      @Id
35      @Column(name = "DUE_DATE_ID")
36      private String fixedDueDateId;
37  
38      @OneToMany(cascade = CascadeType.ALL)
39      @JoinColumn(name = "DUE_DATE_ID")
40      private List<OleFixedDateTimeSpan> oleFixedDateTimeSpanList = new ArrayList<OleFixedDateTimeSpan>();
41  
42      @Transient
43      private List<OleFixedDateTimeSpan> oleDeleteFixedDateTimeSpanList = new ArrayList<OleFixedDateTimeSpan>();
44  
45      public List<OleFixedDateTimeSpan> getOleFixedDateTimeSpanList() {
46          return oleFixedDateTimeSpanList;
47      }
48  
49      public void setOleFixedDateTimeSpanList(List<OleFixedDateTimeSpan> oleFixedDateTimeSpanList) {
50          this.oleFixedDateTimeSpanList = oleFixedDateTimeSpanList;
51      }
52  
53      public String getCirculationPolicySetId() {
54          return circulationPolicySetId;
55      }
56  
57      public void setCirculationPolicySetId(String circulationPolicySetId) {
58          this.circulationPolicySetId = circulationPolicySetId;
59      }
60  
61      public String getFixedDueDateId() {
62          return fixedDueDateId;
63      }
64  
65      public void setFixedDueDateId(String fixedDueDateId) {
66          this.fixedDueDateId = fixedDueDateId;
67      }
68  
69      public List<OleFixedDateTimeSpan> getOleDeleteFixedDateTimeSpanList() {
70          return oleDeleteFixedDateTimeSpanList;
71      }
72  
73      public void setOleDeleteFixedDateTimeSpanList(List<OleFixedDateTimeSpan> oleDeleteFixedDateTimeSpanList) {
74          this.oleDeleteFixedDateTimeSpanList = oleDeleteFixedDateTimeSpanList;
75      }
76  }