Advertisement
Guest User

Untitled

a guest
Apr 10th, 2010
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 58.63 KB | None | 0 0
  1. package com.a.b.domain.model.span;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. import javax.persistence.*;
  6. import javax.xml.bind.annotation.XmlAccessType;
  7. import javax.xml.bind.annotation.XmlAccessorType;
  8. import javax.xml.bind.annotation.XmlAttribute;
  9. import javax.xml.bind.annotation.XmlElement;
  10. import javax.xml.bind.annotation.XmlRootElement;
  11. import javax.xml.bind.annotation.XmlType;
  12.  
  13. import org.apache.commons.lang.builder.EqualsBuilder;
  14. import org.apache.commons.lang.builder.HashCodeBuilder;
  15. import org.jvnet.jaxb2_commons.lang.Equals;
  16. import org.jvnet.jaxb2_commons.lang.HashCode;
  17. import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
  18. import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
  19. import org.hibernate.annotations.GenericGenerator;
  20. import org.hibernate.annotations.Cache;
  21. import org.hibernate.annotations.CacheConcurrencyStrategy;
  22.  
  23.  
  24. @XmlAccessorType(XmlAccessType.FIELD)
  25. @XmlType(name = "", propOrder = {
  26.     "businessDate",
  27.     "generated",
  28.     "account",
  29.     "requirementId"
  30. })
  31. @XmlRootElement(name = "Results")
  32. @Entity(name = "Results")
  33. @Table(name = "SPAN_RESULT")
  34. @Inheritance(strategy = InheritanceType.JOINED)
  35. @Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
  36. public class Results
  37.     implements Equals, HashCode
  38. {
  39.  
  40.     @XmlElement(name = "BusinessDate", required = true)
  41.     @Transient()
  42.     protected Results.BusinessDate businessDate;
  43.  
  44.     @XmlElement(name = "Generated", required = true)
  45.     protected Results.Generated generated;
  46.  
  47.     @XmlElement(name = "Account", required = true)
  48.     protected List<Results.Account> account;
  49.    
  50.     @XmlAttribute(name = "Hjid")
  51.     protected Long hjid;
  52.  
  53.     protected Long requirementId;
  54.  
  55.     @Basic
  56.     @Column(name = "REQUIREMENT_ID", nullable = false)
  57.     public Long getRequirementId() {
  58.         return requirementId;
  59.     }
  60.  
  61.     public void setRequirementId(Long requirementId) {
  62.         this.requirementId = requirementId;
  63.     }
  64.     /**
  65.      * Gets the value of the businessDate property.
  66.      *
  67.      * @return
  68.      *     possible object is
  69.      *     {@link Results.BusinessDate }
  70.      *
  71.      */
  72.     /*
  73.     @ManyToOne(targetEntity = Results.BusinessDate.class, cascade = {
  74.         CascadeType.ALL
  75.     })
  76.     @JoinColumn(name = "BUSINESSDATE_RESULTS_HJID")
  77.     */
  78.     public Results.BusinessDate getBusinessDate() {
  79.         return businessDate;
  80.     }
  81.  
  82.     /**
  83.      * Sets the value of the businessDate property.
  84.      *
  85.      * @param value
  86.      *     allowed object is
  87.      *     {@link Results.BusinessDate }
  88.      *
  89.      */
  90.     public void setBusinessDate(Results.BusinessDate value) {
  91.         this.businessDate = value;
  92.     }
  93.  
  94.     /**
  95.      * Gets the value of the generated property.
  96.      *
  97.      * @return
  98.      *     possible object is
  99.      *     {@link Results.Generated }
  100.      *
  101.      */
  102.     @ManyToOne(targetEntity = Results.Generated.class, cascade = {
  103.         CascadeType.ALL
  104.     })
  105.     @JoinColumn(name = "GENERATED_RESULTS_HJID")
  106.     public Results.Generated getGenerated() {
  107.         return generated;
  108.     }
  109.  
  110.     /**
  111.      * Sets the value of the generated property.
  112.      *
  113.      * @param value
  114.      *     allowed object is
  115.      *     {@link Results.Generated }
  116.      *
  117.      */
  118.     public void setGenerated(Results.Generated value) {
  119.         this.generated = value;
  120.     }
  121.  
  122.     /**
  123.      * Gets the value of the account property.
  124.      *
  125.      * <p>
  126.      * This accessor method returns a reference to the live list,
  127.      * not a snapshot. Therefore any modification you make to the
  128.      * returned list will be present inside the JAXB object.
  129.      * This is why there is not a <CODE>set</CODE> method for the account property.
  130.      *
  131.      * <p>
  132.      * For example, to add a new item, do as follows:
  133.      * <pre>
  134.      *    getAccount().add(newItem);
  135.      * </pre>
  136.      *
  137.      *
  138.      * <p>
  139.      * Objects of the following type(s) are allowed in the list
  140.      * {@link Results.Account }
  141.      *
  142.      *
  143.      */
  144.     @OneToMany(targetEntity = Results.Account.class)
  145.     @JoinColumn(name = "RESULT_ID")
  146.     public List<Results.Account> getAccount() {
  147.         if (account == null) {
  148.             account = new ArrayList<Results.Account>();
  149.         }
  150.         return this.account;
  151.     }
  152.  
  153.     /**
  154.      *
  155.      *
  156.      */
  157.     public void setAccount(List<Results.Account> account) {
  158.         this.account = account;
  159.     }
  160.  
  161.     /**
  162.      * Gets the value of the hjid property.
  163.      *
  164.      * @return
  165.      *     possible object is
  166.      *     {@link Long }
  167.      *
  168.      */
  169.     @Id
  170.     @Column(name = "RESULT_ID")
  171.     @GeneratedValue(generator = "marginserviceseq21") @GenericGenerator(name = "marginserviceseq21", strategy = "increment")
  172.     public Long getHjid() {
  173.         return hjid;
  174.     }
  175.  
  176.     /**
  177.      * Sets the value of the hjid property.
  178.      *
  179.      * @param value
  180.      *     allowed object is
  181.      *     {@link Long }
  182.      *
  183.      */
  184.     public void setHjid(Long value) {
  185.         this.hjid = value;
  186.     }
  187.  
  188.     public void equals(Object object, EqualsBuilder equalsBuilder) {
  189.         if (!(object instanceof Results)) {
  190.             equalsBuilder.appendSuper(false);
  191.             return ;
  192.         }
  193.         if (this == object) {
  194.             return ;
  195.         }
  196.         final Results that = ((Results) object);
  197.         equalsBuilder.append(this.getBusinessDate(), that.getBusinessDate());
  198.         equalsBuilder.append(this.getGenerated(), that.getGenerated());
  199.         equalsBuilder.append(this.getAccount(), that.getAccount());
  200.     }
  201.  
  202.     public boolean equals(Object object) {
  203.         if (!(object instanceof Results)) {
  204.             return false;
  205.         }
  206.         if (this == object) {
  207.             return true;
  208.         }
  209.         final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  210.         equals(object, equalsBuilder);
  211.         return equalsBuilder.isEquals();
  212.     }
  213.  
  214.     public void hashCode(HashCodeBuilder hashCodeBuilder) {
  215.         hashCodeBuilder.append(this.getBusinessDate());
  216.         hashCodeBuilder.append(this.getGenerated());
  217.         hashCodeBuilder.append(this.getAccount());
  218.     }
  219.  
  220.     public int hashCode() {
  221.         final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  222.         hashCode(hashCodeBuilder);
  223.         return hashCodeBuilder.toHashCode();
  224.     }
  225.  
  226.  
  227.    
  228.    
  229.     @XmlAccessorType(XmlAccessType.FIELD)
  230.     @XmlType(name = "", propOrder = {
  231.         "name",
  232.         "summary",
  233.         "marginGroup",
  234.         "clearingMemberAcctNbr"
  235.     })
  236.     @Entity(name = "Results$Account")
  237.     @Table(name = "SPAN_ACCOUNT")
  238.     @Inheritance(strategy = InheritanceType.JOINED)
  239.     public static class Account
  240.         implements Equals, HashCode
  241.     {
  242.  
  243.         @XmlElement(name = "Name", required = true)
  244.         protected String name;
  245.         @XmlElement(name = "Summary", required = true)
  246.         protected Summary summary;
  247.         @XmlElement(name = "MarginGroup", required = true)
  248.         protected Results.Account.MarginGroup marginGroup;
  249.         @XmlAttribute(name = "Hjid")
  250.         protected Long hjid;
  251.         @XmlAttribute(name = "ClearingMemberAcctNbr")
  252.         protected String clearingMemberAcctNbr;
  253.  
  254.         @Basic
  255.         @Column(name = "CLEARING_MEMBER_ACCT_NBR", length = 64)
  256.         public String getClearingMemberAcctNbr() {
  257.             return clearingMemberAcctNbr;
  258.         }
  259.  
  260.         public void setClearingMemberAcctNbr(String clearingMemberAcctNbr) {
  261.             this.clearingMemberAcctNbr = clearingMemberAcctNbr;
  262.         }
  263.  
  264.         /**
  265.          * Gets the value of the name property.
  266.          *
  267.          * @return
  268.          *     possible object is
  269.          *     {@link String }
  270.          *
  271.          */
  272.         @Basic
  273.         @Column(name = "SETTLEMENT_ACCT_NBR", length = 255)
  274.         public String getName() {
  275.             return name;
  276.         }
  277.  
  278.         /**
  279.          * Sets the value of the name property.
  280.          *
  281.          * @param value
  282.          *     allowed object is
  283.          *     {@link String }
  284.          *
  285.          */
  286.         public void setName(String value) {
  287.             this.name = value;
  288.         }
  289.  
  290.         /**
  291.          * Gets the value of the summary property.
  292.          *
  293.          * @return
  294.          *     possible object is
  295.          *     {@link Summary }
  296.          *
  297.          */
  298.         @ManyToOne(targetEntity = Summary.class, cascade = {
  299.             CascadeType.ALL
  300.         })
  301.         @JoinColumn(name = "SUMMARY_ID")
  302.         public Summary getSummary() {
  303.             return summary;
  304.         }
  305.  
  306.         /**
  307.          * Sets the value of the summary property.
  308.          *
  309.          * @param value
  310.          *     allowed object is
  311.          *     {@link Summary }
  312.          *
  313.          */
  314.         public void setSummary(Summary value) {
  315.             this.summary = value;
  316.         }
  317.  
  318.         /**
  319.          * Gets the value of the marginGroup property.
  320.          *
  321.          * @return
  322.          *     possible object is
  323.          *     {@link Results.Account.MarginGroup }
  324.          *
  325.          */
  326.         @ManyToOne(targetEntity = Results.Account.MarginGroup.class, cascade = {
  327.             CascadeType.ALL
  328.         })
  329.         @JoinColumn(name = "MARGINGROUP_ID")
  330.         public Results.Account.MarginGroup getMarginGroup() {
  331.             return marginGroup;
  332.         }
  333.  
  334.         /**
  335.          * Sets the value of the marginGroup property.
  336.          *
  337.          * @param value
  338.          *     allowed object is
  339.          *     {@link Results.Account.MarginGroup }
  340.          *
  341.          */
  342.         public void setMarginGroup(Results.Account.MarginGroup value) {
  343.             this.marginGroup = value;
  344.         }
  345.  
  346.         /**
  347.          * Gets the value of the hjid property.
  348.          *
  349.          * @return
  350.          *     possible object is
  351.          *     {@link Long }
  352.          *
  353.          */
  354.         @Id
  355.         @Column(name = "ACCOUNT_ID")
  356.         @GeneratedValue(generator = "marginserviceseq22") @GenericGenerator(name = "marginserviceseq22", strategy = "increment")
  357.         public Long getHjid() {
  358.             return hjid;
  359.         }
  360.  
  361.         /**
  362.          * Sets the value of the hjid property.
  363.          *
  364.          * @param value
  365.          *     allowed object is
  366.          *     {@link Long }
  367.          *
  368.          */
  369.         public void setHjid(Long value) {
  370.             this.hjid = value;
  371.         }
  372.  
  373.         public void equals(Object object, EqualsBuilder equalsBuilder) {
  374.             if (!(object instanceof Results.Account)) {
  375.                 equalsBuilder.appendSuper(false);
  376.                 return ;
  377.             }
  378.             if (this == object) {
  379.                 return ;
  380.             }
  381.             final Results.Account that = ((Results.Account) object);
  382.             equalsBuilder.append(this.getName(), that.getName());
  383.             equalsBuilder.append(this.getSummary(), that.getSummary());
  384.             equalsBuilder.append(this.getMarginGroup(), that.getMarginGroup());
  385.         }
  386.  
  387.         public boolean equals(Object object) {
  388.             if (!(object instanceof Results.Account)) {
  389.                 return false;
  390.             }
  391.             if (this == object) {
  392.                 return true;
  393.             }
  394.             final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  395.             equals(object, equalsBuilder);
  396.             return equalsBuilder.isEquals();
  397.         }
  398.  
  399.         public void hashCode(HashCodeBuilder hashCodeBuilder) {
  400.             hashCodeBuilder.append(this.getName());
  401.             hashCodeBuilder.append(this.getSummary());
  402.             hashCodeBuilder.append(this.getMarginGroup());
  403.         }
  404.  
  405.         public int hashCode() {
  406.             final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  407.             hashCode(hashCodeBuilder);
  408.             return hashCodeBuilder.toHashCode();
  409.         }
  410.  
  411.  
  412.  
  413.         @XmlAccessorType(XmlAccessType.FIELD)
  414.         @XmlType(name = "", propOrder = {
  415.             "description",
  416.             "summary",
  417.             "intercontractSpread",
  418.             "exchange"
  419.         })
  420.         @Entity(name = "Results$Account$MarginGroup")
  421.         @Table(name = "SPAN_MARGINGROUP")
  422.         @Inheritance(strategy = InheritanceType.JOINED)
  423.         public static class MarginGroup
  424.             implements Equals, HashCode
  425.         {
  426.  
  427.             @XmlElement(name = "Description", required = true)
  428.             protected String description;
  429.             @XmlElement(name = "Summary", required = true)
  430.             protected Summary summary;
  431.             @XmlElement(name = "IntercontractSpread")
  432.             protected List<Results.Account.MarginGroup.IntercontractSpread> intercontractSpread;
  433.             @XmlElement(name = "Exchange", required = true)
  434.             protected Results.Account.MarginGroup.Exchange exchange;
  435.             @XmlAttribute(required = true)
  436.             protected String id;
  437.             @XmlAttribute(name = "Hjid")
  438.             protected Long hjid;
  439.  
  440.             /**
  441.              * Gets the value of the description property.
  442.              *
  443.              * @return
  444.              *     possible object is
  445.              *     {@link String }
  446.              *
  447.              */
  448.             @Basic
  449.             @Column(name = "DESCRIPTION", length = 255)
  450.             public String getDescription() {
  451.                 return description;
  452.             }
  453.  
  454.             /**
  455.              * Sets the value of the description property.
  456.              *
  457.              * @param value
  458.              *     allowed object is
  459.              *     {@link String }
  460.              *
  461.              */
  462.             public void setDescription(String value) {
  463.                 this.description = value;
  464.             }
  465.  
  466.             /**
  467.              * Gets the value of the summary property.
  468.              *
  469.              * @return
  470.              *     possible object is
  471.              *     {@link Summary }
  472.              *
  473.              */
  474.             @ManyToOne(targetEntity = Summary.class, cascade = {
  475.                 CascadeType.ALL
  476.             })
  477.             @JoinColumn(name = "SUMMARY_MARGINGROUP_HJID")
  478.             public Summary getSummary() {
  479.                 return summary;
  480.             }
  481.  
  482.             /**
  483.              * Sets the value of the summary property.
  484.              *
  485.              * @param value
  486.              *     allowed object is
  487.              *     {@link Summary }
  488.              *
  489.              */
  490.             public void setSummary(Summary value) {
  491.                 this.summary = value;
  492.             }
  493.  
  494.             /**
  495.              * Gets the value of the intercontractSpread property.
  496.              *
  497.              * <p>
  498.              * This accessor method returns a reference to the live list,
  499.              * not a snapshot. Therefore any modification you make to the
  500.              * returned list will be present inside the JAXB object.
  501.              * This is why there is not a <CODE>set</CODE> method for the intercontractSpread property.
  502.              *
  503.              * <p>
  504.              * For example, to add a new item, do as follows:
  505.              * <pre>
  506.              *    getIntercontractSpread().add(newItem);
  507.              * </pre>
  508.              *
  509.              *
  510.              * <p>
  511.              * Objects of the following type(s) are allowed in the list
  512.              * {@link Results.Account.MarginGroup.IntercontractSpread }
  513.              *
  514.              *
  515.              */
  516.             @OneToMany(targetEntity = Results.Account.MarginGroup.IntercontractSpread.class, cascade = {
  517.                 CascadeType.ALL
  518.             })
  519.             @JoinColumn(name = "INTERCONTRACTSPREAD_MARGINGR_0")
  520.             public List<Results.Account.MarginGroup.IntercontractSpread> getIntercontractSpread() {
  521.                 if (intercontractSpread == null) {
  522.                     intercontractSpread = new ArrayList<Results.Account.MarginGroup.IntercontractSpread>();
  523.                 }
  524.                 return this.intercontractSpread;
  525.             }
  526.  
  527.             /**
  528.              *
  529.              *
  530.              */
  531.             public void setIntercontractSpread(List<Results.Account.MarginGroup.IntercontractSpread> intercontractSpread) {
  532.                 this.intercontractSpread = intercontractSpread;
  533.             }
  534.  
  535.             /**
  536.              * Gets the value of the exchange property.
  537.              *
  538.              * @return
  539.              *     possible object is
  540.              *     {@link Results.Account.MarginGroup.Exchange }
  541.              *
  542.              */
  543.             @ManyToOne(targetEntity = Results.Account.MarginGroup.Exchange.class, cascade = {
  544.                 CascadeType.ALL
  545.             })
  546.             @JoinColumn(name = "EXCHANGE_MARGINGROUP_HJID")
  547.             public Results.Account.MarginGroup.Exchange getExchange() {
  548.                 return exchange;
  549.             }
  550.  
  551.             /**
  552.              * Sets the value of the exchange property.
  553.              *
  554.              * @param value
  555.              *     allowed object is
  556.              *     {@link Results.Account.MarginGroup.Exchange }
  557.              *
  558.              */
  559.             public void setExchange(Results.Account.MarginGroup.Exchange value) {
  560.                 this.exchange = value;
  561.             }
  562.  
  563.             /**
  564.              * Gets the value of the id property.
  565.              *
  566.              * @return
  567.              *     possible object is
  568.              *     {@link String }
  569.              *
  570.              */
  571.             @Basic
  572.             @Column(name = "ID", length = 255)
  573.             public String getId() {
  574.                 return id;
  575.             }
  576.  
  577.             /**
  578.              * Sets the value of the id property.
  579.              *
  580.              * @param value
  581.              *     allowed object is
  582.              *     {@link String }
  583.              *
  584.              */
  585.             public void setId(String value) {
  586.                 this.id = value;
  587.             }
  588.  
  589.             /**
  590.              * Gets the value of the hjid property.
  591.              *
  592.              * @return
  593.              *     possible object is
  594.              *     {@link Long }
  595.              *
  596.              */
  597.             @Id
  598.             @Column(name = "HJID")
  599.             @GeneratedValue(generator = "marginserviceseq23") @GenericGenerator(name = "marginserviceseq23", strategy = "increment")
  600.             public Long getHjid() {
  601.                 return hjid;
  602.             }
  603.  
  604.             /**
  605.              * Sets the value of the hjid property.
  606.              *
  607.              * @param value
  608.              *     allowed object is
  609.              *     {@link Long }
  610.              *
  611.              */
  612.             public void setHjid(Long value) {
  613.                 this.hjid = value;
  614.             }
  615.  
  616.             public void equals(Object object, EqualsBuilder equalsBuilder) {
  617.                 if (!(object instanceof Results.Account.MarginGroup)) {
  618.                     equalsBuilder.appendSuper(false);
  619.                     return ;
  620.                 }
  621.                 if (this == object) {
  622.                     return ;
  623.                 }
  624.                 final Results.Account.MarginGroup that = ((Results.Account.MarginGroup) object);
  625.                 equalsBuilder.append(this.getDescription(), that.getDescription());
  626.                 equalsBuilder.append(this.getSummary(), that.getSummary());
  627.                 equalsBuilder.append(this.getIntercontractSpread(), that.getIntercontractSpread());
  628.                 equalsBuilder.append(this.getExchange(), that.getExchange());
  629.                 equalsBuilder.append(this.getId(), that.getId());
  630.             }
  631.  
  632.             public boolean equals(Object object) {
  633.                 if (!(object instanceof Results.Account.MarginGroup)) {
  634.                     return false;
  635.                 }
  636.                 if (this == object) {
  637.                     return true;
  638.                 }
  639.                 final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  640.                 equals(object, equalsBuilder);
  641.                 return equalsBuilder.isEquals();
  642.             }
  643.  
  644.             public void hashCode(HashCodeBuilder hashCodeBuilder) {
  645.                 hashCodeBuilder.append(this.getDescription());
  646.                 hashCodeBuilder.append(this.getSummary());
  647.                 hashCodeBuilder.append(this.getIntercontractSpread());
  648.                 hashCodeBuilder.append(this.getExchange());
  649.                 hashCodeBuilder.append(this.getId());
  650.             }
  651.  
  652.             public int hashCode() {
  653.                 final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  654.                 hashCode(hashCodeBuilder);
  655.                 return hashCodeBuilder.toHashCode();
  656.             }
  657.  
  658.  
  659.             /**
  660.              * <p>Java class for anonymous complex type.
  661.              *
  662.              * <p>The following schema fragment specifies the expected content contained within this class.
  663.              *
  664.              * <pre>
  665.              * &lt;complexType>
  666.              *   &lt;complexContent>
  667.              *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  668.              *       &lt;sequence>
  669.              *         &lt;element ref="{}Description"/>
  670.              *         &lt;element ref="{}Summary"/>
  671.              *         &lt;element ref="{}CombinedContract" maxOccurs="unbounded"/>
  672.              *       &lt;/sequence>
  673.              *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
  674.              *     &lt;/restriction>
  675.              *   &lt;/complexContent>
  676.              * &lt;/complexType>
  677.              * </pre>
  678.              *
  679.              *
  680.              */
  681.             @XmlAccessorType(XmlAccessType.FIELD)
  682.             @XmlType(name = "", propOrder = {
  683.                 "description",
  684.                 "summary",
  685.                 "combinedContract"
  686.             })
  687.             @Entity(name = "Results$Account$MarginGroup$Exchange")
  688.             @Table(name = "SPAN_EXCHANGE")
  689.             @Inheritance(strategy = InheritanceType.JOINED)
  690.             public static class Exchange
  691.                 implements Equals, HashCode
  692.             {
  693.  
  694.                 @XmlElement(name = "Description", required = true)
  695.                 protected String description;
  696.                 @XmlElement(name = "Summary", required = true)
  697.                 protected Summary summary;
  698.                 @XmlElement(name = "CombinedContract", required = true)
  699.                 protected List<CombinedContract> combinedContract;
  700.                 @XmlAttribute(required = true)
  701.                 protected String id;
  702.                 @XmlAttribute(name = "Hjid")
  703.                 protected Long hjid;
  704.  
  705.                 /**
  706.                  * Gets the value of the description property.
  707.                  *
  708.                  * @return
  709.                  *     possible object is
  710.                  *     {@link String }
  711.                  *
  712.                  */
  713.                 @Basic
  714.                 @Column(name = "DESCRIPTION", length = 255)
  715.                 public String getDescription() {
  716.                     return description;
  717.                 }
  718.  
  719.                 /**
  720.                  * Sets the value of the description property.
  721.                  *
  722.                  * @param value
  723.                  *     allowed object is
  724.                  *     {@link String }
  725.                  *
  726.                  */
  727.                 public void setDescription(String value) {
  728.                     this.description = value;
  729.                 }
  730.  
  731.                 /**
  732.                  * Gets the value of the summary property.
  733.                  *
  734.                  * @return
  735.                  *     possible object is
  736.                  *     {@link Summary }
  737.                  *
  738.                  */
  739.                 @ManyToOne(targetEntity = Summary.class, cascade = {
  740.                     CascadeType.ALL
  741.                 })
  742.                 @JoinColumn(name = "SUMMARY_EXCHANGE_HJID")
  743.                 public Summary getSummary() {
  744.                     return summary;
  745.                 }
  746.  
  747.                 /**
  748.                  * Sets the value of the summary property.
  749.                  *
  750.                  * @param value
  751.                  *     allowed object is
  752.                  *     {@link Summary }
  753.                  *
  754.                  */
  755.                 public void setSummary(Summary value) {
  756.                     this.summary = value;
  757.                 }
  758.  
  759.                 /**
  760.                  * Gets the value of the combinedContract property.
  761.                  *
  762.                  * <p>
  763.                  * This accessor method returns a reference to the live list,
  764.                  * not a snapshot. Therefore any modification you make to the
  765.                  * returned list will be present inside the JAXB object.
  766.                  * This is why there is not a <CODE>set</CODE> method for the combinedContract property.
  767.                  *
  768.                  * <p>
  769.                  * For example, to add a new item, do as follows:
  770.                  * <pre>
  771.                  *    getCombinedContract().add(newItem);
  772.                  * </pre>
  773.                  *
  774.                  *
  775.                  * <p>
  776.                  * Objects of the following type(s) are allowed in the list
  777.                  * {@link CombinedContract }
  778.                  *
  779.                  *
  780.                  */
  781.                 @OneToMany(targetEntity = CombinedContract.class, cascade = {
  782.                     CascadeType.ALL
  783.                 })
  784.                 @JoinColumn(name = "COMBINEDCONTRACT_EXCHANGE_HJ_0")
  785.                 public List<CombinedContract> getCombinedContract() {
  786.                     if (combinedContract == null) {
  787.                         combinedContract = new ArrayList<CombinedContract>();
  788.                     }
  789.                     return this.combinedContract;
  790.                 }
  791.  
  792.                 /**
  793.                  *
  794.                  *
  795.                  */
  796.                 public void setCombinedContract(List<CombinedContract> combinedContract) {
  797.                     this.combinedContract = combinedContract;
  798.                 }
  799.  
  800.                 /**
  801.                  * Gets the value of the id property.
  802.                  *
  803.                  * @return
  804.                  *     possible object is
  805.                  *     {@link String }
  806.                  *
  807.                  */
  808.                 @Basic
  809.                 @Column(name = "ID", length = 255)
  810.                 public String getId() {
  811.                     return id;
  812.                 }
  813.  
  814.                 /**
  815.                  * Sets the value of the id property.
  816.                  *
  817.                  * @param value
  818.                  *     allowed object is
  819.                  *     {@link String }
  820.                  *
  821.                  */
  822.                 public void setId(String value) {
  823.                     this.id = value;
  824.                 }
  825.  
  826.                 /**
  827.                  * Gets the value of the hjid property.
  828.                  *
  829.                  * @return
  830.                  *     possible object is
  831.                  *     {@link Long }
  832.                  *
  833.                  */
  834.                 @Id
  835.                 @Column(name = "HJID")
  836.                 @GeneratedValue(generator = "marginserviceseq24") @GenericGenerator(name = "marginserviceseq24", strategy = "increment")
  837.                 public Long getHjid() {
  838.                     return hjid;
  839.                 }
  840.  
  841.                 /**
  842.                  * Sets the value of the hjid property.
  843.                  *
  844.                  * @param value
  845.                  *     allowed object is
  846.                  *     {@link Long }
  847.                  *
  848.                  */
  849.                 public void setHjid(Long value) {
  850.                     this.hjid = value;
  851.                 }
  852.  
  853.                 public void equals(Object object, EqualsBuilder equalsBuilder) {
  854.                     if (!(object instanceof Results.Account.MarginGroup.Exchange)) {
  855.                         equalsBuilder.appendSuper(false);
  856.                         return ;
  857.                     }
  858.                     if (this == object) {
  859.                         return ;
  860.                     }
  861.                     final Results.Account.MarginGroup.Exchange that = ((Results.Account.MarginGroup.Exchange) object);
  862.                     equalsBuilder.append(this.getDescription(), that.getDescription());
  863.                     equalsBuilder.append(this.getSummary(), that.getSummary());
  864.                     equalsBuilder.append(this.getCombinedContract(), that.getCombinedContract());
  865.                     equalsBuilder.append(this.getId(), that.getId());
  866.                 }
  867.  
  868.                 public boolean equals(Object object) {
  869.                     if (!(object instanceof Results.Account.MarginGroup.Exchange)) {
  870.                         return false;
  871.                     }
  872.                     if (this == object) {
  873.                         return true;
  874.                     }
  875.                     final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  876.                     equals(object, equalsBuilder);
  877.                     return equalsBuilder.isEquals();
  878.                 }
  879.  
  880.                 public void hashCode(HashCodeBuilder hashCodeBuilder) {
  881.                     hashCodeBuilder.append(this.getDescription());
  882.                     hashCodeBuilder.append(this.getSummary());
  883.                     hashCodeBuilder.append(this.getCombinedContract());
  884.                     hashCodeBuilder.append(this.getId());
  885.                 }
  886.  
  887.                 public int hashCode() {
  888.                     final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  889.                     hashCode(hashCodeBuilder);
  890.                     return hashCodeBuilder.toHashCode();
  891.                 }
  892.  
  893.             }
  894.  
  895.  
  896.             /**
  897.              * <p>Java class for anonymous complex type.
  898.              *
  899.              * <p>The following schema fragment specifies the expected content contained within this class.
  900.              *
  901.              * <pre>
  902.              * &lt;complexType>
  903.              *   &lt;complexContent>
  904.              *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  905.              *       &lt;sequence>
  906.              *         &lt;element name="ContractGroup" type="{http://www.w3.org/2001/XMLSchema}string"/>
  907.              *         &lt;element name="Priority" type="{http://www.w3.org/2001/XMLSchema}string"/>
  908.              *         &lt;element name="Method" type="{http://www.w3.org/2001/XMLSchema}string"/>
  909.              *         &lt;element name="CreditRate" type="{http://www.w3.org/2001/XMLSchema}string"/>
  910.              *         &lt;element name="OffsetRate" type="{http://www.w3.org/2001/XMLSchema}string"/>
  911.              *         &lt;element name="OffsetCharge" type="{http://www.w3.org/2001/XMLSchema}string"/>
  912.              *         &lt;element name="PercentageSaving" type="{http://www.w3.org/2001/XMLSchema}string"/>
  913.              *         &lt;element name="Spreads" type="{http://www.w3.org/2001/XMLSchema}string"/>
  914.              *         &lt;element ref="{}Leg" maxOccurs="unbounded"/>
  915.              *       &lt;/sequence>
  916.              *     &lt;/restriction>
  917.              *   &lt;/complexContent>
  918.              * &lt;/complexType>
  919.              * </pre>
  920.              *
  921.              *
  922.              */
  923.             @XmlAccessorType(XmlAccessType.FIELD)
  924.             @XmlType(name = "", propOrder = {
  925.                 "contractGroup",
  926.                 "priority",
  927.                 "method",
  928.                 "creditRate",
  929.                 "offsetRate",
  930.                 "offsetCharge",
  931.                 "percentageSaving",
  932.                 "spreads",
  933.                 "leg"
  934.             })
  935.             @Entity(name = "Results$Account$MarginGroup$IntercontractSpread")
  936.             @Table(name = "SPAN_INTERCONTRACTSPREAD")
  937.             @Inheritance(strategy = InheritanceType.JOINED)
  938.             public static class IntercontractSpread
  939.                 implements Equals, HashCode
  940.             {
  941.  
  942.                 @XmlElement(name = "ContractGroup", required = true)
  943.                 protected String contractGroup;
  944.                 @XmlElement(name = "Priority", required = true)
  945.                 protected String priority;
  946.                 @XmlElement(name = "Method", required = true)
  947.                 protected String method;
  948.                 @XmlElement(name = "CreditRate", required = true)
  949.                 protected String creditRate;
  950.                 @XmlElement(name = "OffsetRate", required = true)
  951.                 protected String offsetRate;
  952.                 @XmlElement(name = "OffsetCharge", required = true)
  953.                 protected String offsetCharge;
  954.                 @XmlElement(name = "PercentageSaving", required = true)
  955.                 protected String percentageSaving;
  956.                 @XmlElement(name = "Spreads", required = true)
  957.                 protected String spreads;
  958.                 @XmlElement(name = "Leg", required = true)
  959.                 protected List<Leg> leg;
  960.                 @XmlAttribute(name = "Hjid")
  961.                 protected Long hjid;
  962.  
  963.                 /**
  964.                  * Gets the value of the contractGroup property.
  965.                  *
  966.                  * @return
  967.                  *     possible object is
  968.                  *     {@link String }
  969.                  *
  970.                  */
  971.                 @Basic
  972.                 @Column(name = "CONTRACTGROUP", length = 255)
  973.                 public String getContractGroup() {
  974.                     return contractGroup;
  975.                 }
  976.  
  977.                 /**
  978.                  * Sets the value of the contractGroup property.
  979.                  *
  980.                  * @param value
  981.                  *     allowed object is
  982.                  *     {@link String }
  983.                  *
  984.                  */
  985.                 public void setContractGroup(String value) {
  986.                     this.contractGroup = value;
  987.                 }
  988.  
  989.                 /**
  990.                  * Gets the value of the priority property.
  991.                  *
  992.                  * @return
  993.                  *     possible object is
  994.                  *     {@link String }
  995.                  *
  996.                  */
  997.                 @Basic
  998.                 @Column(name = "PRIORITY", length = 255)
  999.                 public String getPriority() {
  1000.                     return priority;
  1001.                 }
  1002.  
  1003.                 /**
  1004.                  * Sets the value of the priority property.
  1005.                  *
  1006.                  * @param value
  1007.                  *     allowed object is
  1008.                  *     {@link String }
  1009.                  *
  1010.                  */
  1011.                 public void setPriority(String value) {
  1012.                     this.priority = value;
  1013.                 }
  1014.  
  1015.                 /**
  1016.                  * Gets the value of the method property.
  1017.                  *
  1018.                  * @return
  1019.                  *     possible object is
  1020.                  *     {@link String }
  1021.                  *
  1022.                  */
  1023.                 @Basic
  1024.                 @Column(name = "METHOD_", length = 255)
  1025.                 public String getMethod() {
  1026.                     return method;
  1027.                 }
  1028.  
  1029.                 /**
  1030.                  * Sets the value of the method property.
  1031.                  *
  1032.                  * @param value
  1033.                  *     allowed object is
  1034.                  *     {@link String }
  1035.                  *
  1036.                  */
  1037.                 public void setMethod(String value) {
  1038.                     this.method = value;
  1039.                 }
  1040.  
  1041.                 /**
  1042.                  * Gets the value of the creditRate property.
  1043.                  *
  1044.                  * @return
  1045.                  *     possible object is
  1046.                  *     {@link String }
  1047.                  *
  1048.                  */
  1049.                 @Basic
  1050.                 @Column(name = "CREDITRATE", length = 255)
  1051.                 public String getCreditRate() {
  1052.                     return creditRate;
  1053.                 }
  1054.  
  1055.                 /**
  1056.                  * Sets the value of the creditRate property.
  1057.                  *
  1058.                  * @param value
  1059.                  *     allowed object is
  1060.                  *     {@link String }
  1061.                  *
  1062.                  */
  1063.                 public void setCreditRate(String value) {
  1064.                     this.creditRate = value;
  1065.                 }
  1066.  
  1067.                 /**
  1068.                  * Gets the value of the offsetRate property.
  1069.                  *
  1070.                  * @return
  1071.                  *     possible object is
  1072.                  *     {@link String }
  1073.                  *
  1074.                  */
  1075.                 @Basic
  1076.                 @Column(name = "OFFSETRATE", length = 255)
  1077.                 public String getOffsetRate() {
  1078.                     return offsetRate;
  1079.                 }
  1080.  
  1081.                 /**
  1082.                  * Sets the value of the offsetRate property.
  1083.                  *
  1084.                  * @param value
  1085.                  *     allowed object is
  1086.                  *     {@link String }
  1087.                  *
  1088.                  */
  1089.                 public void setOffsetRate(String value) {
  1090.                     this.offsetRate = value;
  1091.                 }
  1092.  
  1093.                 /**
  1094.                  * Gets the value of the offsetCharge property.
  1095.                  *
  1096.                  * @return
  1097.                  *     possible object is
  1098.                  *     {@link String }
  1099.                  *
  1100.                  */
  1101.                 @Basic
  1102.                 @Column(name = "OFFSETCHARGE", length = 255)
  1103.                 public String getOffsetCharge() {
  1104.                     return offsetCharge;
  1105.                 }
  1106.  
  1107.                 /**
  1108.                  * Sets the value of the offsetCharge property.
  1109.                  *
  1110.                  * @param value
  1111.                  *     allowed object is
  1112.                  *     {@link String }
  1113.                  *
  1114.                  */
  1115.                 public void setOffsetCharge(String value) {
  1116.                     this.offsetCharge = value;
  1117.                 }
  1118.  
  1119.                 /**
  1120.                  * Gets the value of the percentageSaving property.
  1121.                  *
  1122.                  * @return
  1123.                  *     possible object is
  1124.                  *     {@link String }
  1125.                  *
  1126.                  */
  1127.                 @Basic
  1128.                 @Column(name = "PERCENTAGESAVING", length = 255)
  1129.                 public String getPercentageSaving() {
  1130.                     return percentageSaving;
  1131.                 }
  1132.  
  1133.                 /**
  1134.                  * Sets the value of the percentageSaving property.
  1135.                  *
  1136.                  * @param value
  1137.                  *     allowed object is
  1138.                  *     {@link String }
  1139.                  *
  1140.                  */
  1141.                 public void setPercentageSaving(String value) {
  1142.                     this.percentageSaving = value;
  1143.                 }
  1144.  
  1145.                 /**
  1146.                  * Gets the value of the spreads property.
  1147.                  *
  1148.                  * @return
  1149.                  *     possible object is
  1150.                  *     {@link String }
  1151.                  *
  1152.                  */
  1153.                 @Basic
  1154.                 @Column(name = "SPREADS", length = 255)
  1155.                 public String getSpreads() {
  1156.                     return spreads;
  1157.                 }
  1158.  
  1159.                 /**
  1160.                  * Sets the value of the spreads property.
  1161.                  *
  1162.                  * @param value
  1163.                  *     allowed object is
  1164.                  *     {@link String }
  1165.                  *
  1166.                  */
  1167.                 public void setSpreads(String value) {
  1168.                     this.spreads = value;
  1169.                 }
  1170.  
  1171.                 /**
  1172.                  * Gets the value of the leg property.
  1173.                  *
  1174.                  * <p>
  1175.                  * This accessor method returns a reference to the live list,
  1176.                  * not a snapshot. Therefore any modification you make to the
  1177.                  * returned list will be present inside the JAXB object.
  1178.                  * This is why there is not a <CODE>set</CODE> method for the leg property.
  1179.                  *
  1180.                  * <p>
  1181.                  * For example, to add a new item, do as follows:
  1182.                  * <pre>
  1183.                  *    getLeg().add(newItem);
  1184.                  * </pre>
  1185.                  *
  1186.                  *
  1187.                  * <p>
  1188.                  * Objects of the following type(s) are allowed in the list
  1189.                  * {@link Leg }
  1190.                  *
  1191.                  *
  1192.                  */
  1193.                 @OneToMany(targetEntity = Leg.class, cascade = {
  1194.                     CascadeType.ALL
  1195.                 })
  1196.                 @JoinColumn(name = "LEG_INTERCONTRACTSPREAD_HJID")
  1197.                 public List<Leg> getLeg() {
  1198.                     if (leg == null) {
  1199.                         leg = new ArrayList<Leg>();
  1200.                     }
  1201.                     return this.leg;
  1202.                 }
  1203.  
  1204.                 /**
  1205.                  *
  1206.                  *
  1207.                  */
  1208.                 public void setLeg(List<Leg> leg) {
  1209.                     this.leg = leg;
  1210.                 }
  1211.  
  1212.                 /**
  1213.                  * Gets the value of the hjid property.
  1214.                  *
  1215.                  * @return
  1216.                  *     possible object is
  1217.                  *     {@link Long }
  1218.                  *
  1219.                  */
  1220.                 @Id
  1221.                 @Column(name = "HJID")
  1222.                 @GeneratedValue(generator = "marginserviceseq25") @GenericGenerator(name = "marginserviceseq25", strategy = "increment")
  1223.                 public Long getHjid() {
  1224.                     return hjid;
  1225.                 }
  1226.  
  1227.                 /**
  1228.                  * Sets the value of the hjid property.
  1229.                  *
  1230.                  * @param value
  1231.                  *     allowed object is
  1232.                  *     {@link Long }
  1233.                  *
  1234.                  */
  1235.                 public void setHjid(Long value) {
  1236.                     this.hjid = value;
  1237.                 }
  1238.  
  1239.                 public void equals(Object object, EqualsBuilder equalsBuilder) {
  1240.                     if (!(object instanceof Results.Account.MarginGroup.IntercontractSpread)) {
  1241.                         equalsBuilder.appendSuper(false);
  1242.                         return ;
  1243.                     }
  1244.                     if (this == object) {
  1245.                         return ;
  1246.                     }
  1247.                     final Results.Account.MarginGroup.IntercontractSpread that = ((Results.Account.MarginGroup.IntercontractSpread) object);
  1248.                     equalsBuilder.append(this.getContractGroup(), that.getContractGroup());
  1249.                     equalsBuilder.append(this.getPriority(), that.getPriority());
  1250.                     equalsBuilder.append(this.getMethod(), that.getMethod());
  1251.                     equalsBuilder.append(this.getCreditRate(), that.getCreditRate());
  1252.                     equalsBuilder.append(this.getOffsetRate(), that.getOffsetRate());
  1253.                     equalsBuilder.append(this.getOffsetCharge(), that.getOffsetCharge());
  1254.                     equalsBuilder.append(this.getPercentageSaving(), that.getPercentageSaving());
  1255.                     equalsBuilder.append(this.getSpreads(), that.getSpreads());
  1256.                     equalsBuilder.append(this.getLeg(), that.getLeg());
  1257.                 }
  1258.  
  1259.                 public boolean equals(Object object) {
  1260.                     if (!(object instanceof Results.Account.MarginGroup.IntercontractSpread)) {
  1261.                         return false;
  1262.                     }
  1263.                     if (this == object) {
  1264.                         return true;
  1265.                     }
  1266.                     final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  1267.                     equals(object, equalsBuilder);
  1268.                     return equalsBuilder.isEquals();
  1269.                 }
  1270.  
  1271.                 public void hashCode(HashCodeBuilder hashCodeBuilder) {
  1272.                     hashCodeBuilder.append(this.getContractGroup());
  1273.                     hashCodeBuilder.append(this.getPriority());
  1274.                     hashCodeBuilder.append(this.getMethod());
  1275.                     hashCodeBuilder.append(this.getCreditRate());
  1276.                     hashCodeBuilder.append(this.getOffsetRate());
  1277.                     hashCodeBuilder.append(this.getOffsetCharge());
  1278.                     hashCodeBuilder.append(this.getPercentageSaving());
  1279.                     hashCodeBuilder.append(this.getSpreads());
  1280.                     hashCodeBuilder.append(this.getLeg());
  1281.                 }
  1282.  
  1283.                 public int hashCode() {
  1284.                     final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  1285.                     hashCode(hashCodeBuilder);
  1286.                     return hashCodeBuilder.toHashCode();
  1287.                 }
  1288.  
  1289.             }
  1290.  
  1291.         }
  1292.  
  1293.     }
  1294.  
  1295.  
  1296.     /**
  1297.      * <p>Java class for anonymous complex type.
  1298.      *
  1299.      * <p>The following schema fragment specifies the expected content contained within this class.
  1300.      *
  1301.      * <pre>
  1302.      * &lt;complexType>
  1303.      *   &lt;complexContent>
  1304.      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  1305.      *       &lt;sequence>
  1306.      *         &lt;element ref="{}Raw"/>
  1307.      *         &lt;element ref="{}Display"/>
  1308.      *       &lt;/sequence>
  1309.      *     &lt;/restriction>
  1310.      *   &lt;/complexContent>
  1311.      * &lt;/complexType>
  1312.      * </pre>
  1313.      *
  1314.      *
  1315.      */
  1316.     @XmlAccessorType(XmlAccessType.FIELD)
  1317.     @XmlType(name = "", propOrder = {
  1318.         "raw",
  1319.         "display"
  1320.     })
  1321.     /*
  1322.     @Entity(name = "Results$BusinessDate")
  1323.     @Table(name = "SPAN_BUSINESSDATE")
  1324.     @Inheritance(strategy = InheritanceType.JOINED)
  1325.     */
  1326.     public static class BusinessDate
  1327.         implements Equals, HashCode
  1328.     {
  1329.  
  1330.         @XmlElement(name = "Raw", required = true)
  1331.         protected String raw;
  1332.         @XmlElement(name = "Display", required = true)
  1333.         protected String display;
  1334.         @XmlAttribute(name = "Hjid")
  1335.         protected Long hjid;
  1336.  
  1337.         /**
  1338.          * Gets the value of the raw property.
  1339.          *
  1340.          * @return
  1341.          *     possible object is
  1342.          *     {@link String }
  1343.          *
  1344.          */
  1345.         /*
  1346.         @Basic
  1347.         @Column(name = "RAW_", length = 255)
  1348.         */
  1349.         public String getRaw() {
  1350.             return raw;
  1351.         }
  1352.  
  1353.         /**
  1354.          * Sets the value of the raw property.
  1355.          *
  1356.          * @param value
  1357.          *     allowed object is
  1358.          *     {@link String }
  1359.          *
  1360.          */
  1361.         public void setRaw(String value) {
  1362.             this.raw = value;
  1363.         }
  1364.  
  1365.         /**
  1366.          * Gets the value of the display property.
  1367.          *
  1368.          * @return
  1369.          *     possible object is
  1370.          *     {@link String }
  1371.          *
  1372.          */
  1373.         /*
  1374.         @Basic
  1375.         @Column(name = "DISPLAY", length = 255)
  1376.         */
  1377.         public String getDisplay() {
  1378.             return display;
  1379.         }
  1380.  
  1381.         /**
  1382.          * Sets the value of the display property.
  1383.          *
  1384.          * @param value
  1385.          *     allowed object is
  1386.          *     {@link String }
  1387.          *
  1388.          */
  1389.         public void setDisplay(String value) {
  1390.             this.display = value;
  1391.         }
  1392.  
  1393.         /**
  1394.          * Gets the value of the hjid property.
  1395.          *
  1396.          * @return
  1397.          *     possible object is
  1398.          *     {@link Long }
  1399.          *
  1400.          */
  1401.         /*
  1402.         @Id
  1403.         @Column(name = "HJID")
  1404.         @GeneratedValue(generator = "marginserviceseq26") @GenericGenerator(name = "marginserviceseq26", strategy = "increment")
  1405.         */
  1406.         public Long getHjid() {
  1407.             return hjid;
  1408.         }
  1409.  
  1410.         /**
  1411.          * Sets the value of the hjid property.
  1412.          *
  1413.          * @param value
  1414.          *     allowed object is
  1415.          *     {@link Long }
  1416.          *
  1417.          */
  1418.         public void setHjid(Long value) {
  1419.             this.hjid = value;
  1420.         }
  1421.  
  1422.         public void equals(Object object, EqualsBuilder equalsBuilder) {
  1423.             if (!(object instanceof Results.BusinessDate)) {
  1424.                 equalsBuilder.appendSuper(false);
  1425.                 return ;
  1426.             }
  1427.             if (this == object) {
  1428.                 return ;
  1429.             }
  1430.             final Results.BusinessDate that = ((Results.BusinessDate) object);
  1431.             equalsBuilder.append(this.getRaw(), that.getRaw());
  1432.             equalsBuilder.append(this.getDisplay(), that.getDisplay());
  1433.         }
  1434.  
  1435.         public boolean equals(Object object) {
  1436.             if (!(object instanceof Results.BusinessDate)) {
  1437.                 return false;
  1438.             }
  1439.             if (this == object) {
  1440.                 return true;
  1441.             }
  1442.             final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  1443.             equals(object, equalsBuilder);
  1444.             return equalsBuilder.isEquals();
  1445.         }
  1446.  
  1447.         public void hashCode(HashCodeBuilder hashCodeBuilder) {
  1448.             hashCodeBuilder.append(this.getRaw());
  1449.             hashCodeBuilder.append(this.getDisplay());
  1450.         }
  1451.  
  1452.         public int hashCode() {
  1453.             final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  1454.             hashCode(hashCodeBuilder);
  1455.             return hashCodeBuilder.toHashCode();
  1456.         }
  1457.  
  1458.     }
  1459.  
  1460.  
  1461.     /**
  1462.      * <p>Java class for anonymous complex type.
  1463.      *
  1464.      * <p>The following schema fragment specifies the expected content contained within this class.
  1465.      *
  1466.      * <pre>
  1467.      * &lt;complexType>
  1468.      *   &lt;complexContent>
  1469.      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  1470.      *       &lt;sequence>
  1471.      *         &lt;element name="Date">
  1472.      *           &lt;complexType>
  1473.      *             &lt;complexContent>
  1474.      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  1475.      *                 &lt;sequence>
  1476.      *                   &lt;element ref="{}Raw"/>
  1477.      *                   &lt;element ref="{}Display"/>
  1478.      *                 &lt;/sequence>
  1479.      *               &lt;/restriction>
  1480.      *             &lt;/complexContent>
  1481.      *           &lt;/complexType>
  1482.      *         &lt;/element>
  1483.      *         &lt;element name="Time" type="{http://www.w3.org/2001/XMLSchema}string"/>
  1484.      *       &lt;/sequence>
  1485.      *     &lt;/restriction>
  1486.      *   &lt;/complexContent>
  1487.      * &lt;/complexType>
  1488.      * </pre>
  1489.      *
  1490.      *
  1491.      */
  1492.     @XmlAccessorType(XmlAccessType.FIELD)
  1493.     @XmlType(name = "", propOrder = {
  1494.         "date",
  1495.         "time"
  1496.     })
  1497.     @Entity(name = "Results$Generated")
  1498.     @Table(name = "SPAN_GENERATED")
  1499.     @Inheritance(strategy = InheritanceType.JOINED)
  1500.     public static class Generated
  1501.         implements Equals, HashCode
  1502.     {
  1503.  
  1504.         @XmlElement(name = "Date", required = true)
  1505.         protected Results.Generated.Date date;
  1506.         @XmlElement(name = "Time", required = true)
  1507.         protected String time;
  1508.         @XmlAttribute(name = "Hjid")
  1509.         protected Long hjid;
  1510.  
  1511.         /**
  1512.          * Gets the value of the date property.
  1513.          *
  1514.          * @return
  1515.          *     possible object is
  1516.          *     {@link Results.Generated.Date }
  1517.          *
  1518.          */
  1519.         @ManyToOne(targetEntity = Results.Generated.Date.class, cascade = {
  1520.             CascadeType.ALL
  1521.         })
  1522.         @JoinColumn(name = "DATE_GENERATED_HJID")
  1523.         public Results.Generated.Date getDate() {
  1524.             return date;
  1525.         }
  1526.  
  1527.         /**
  1528.          * Sets the value of the date property.
  1529.          *
  1530.          * @param value
  1531.          *     allowed object is
  1532.          *     {@link Results.Generated.Date }
  1533.          *
  1534.          */
  1535.         public void setDate(Results.Generated.Date value) {
  1536.             this.date = value;
  1537.         }
  1538.  
  1539.         /**
  1540.          * Gets the value of the time property.
  1541.          *
  1542.          * @return
  1543.          *     possible object is
  1544.          *     {@link String }
  1545.          *
  1546.          */
  1547.         @Basic
  1548.         @Column(name = "TIME_", length = 255)
  1549.         public String getTime() {
  1550.             return time;
  1551.         }
  1552.  
  1553.         /**
  1554.          * Sets the value of the time property.
  1555.          *
  1556.          * @param value
  1557.          *     allowed object is
  1558.          *     {@link String }
  1559.          *
  1560.          */
  1561.         public void setTime(String value) {
  1562.             this.time = value;
  1563.         }
  1564.  
  1565.         /**
  1566.          * Gets the value of the hjid property.
  1567.          *
  1568.          * @return
  1569.          *     possible object is
  1570.          *     {@link Long }
  1571.          *
  1572.          */
  1573.         @Id
  1574.         @Column(name = "HJID")
  1575.         @GeneratedValue(generator = "marginserviceseq27") @GenericGenerator(name = "marginserviceseq27", strategy = "increment")
  1576.         public Long getHjid() {
  1577.             return hjid;
  1578.         }
  1579.  
  1580.         /**
  1581.          * Sets the value of the hjid property.
  1582.          *
  1583.          * @param value
  1584.          *     allowed object is
  1585.          *     {@link Long }
  1586.          *
  1587.          */
  1588.         public void setHjid(Long value) {
  1589.             this.hjid = value;
  1590.         }
  1591.  
  1592.         public void equals(Object object, EqualsBuilder equalsBuilder) {
  1593.             if (!(object instanceof Results.Generated)) {
  1594.                 equalsBuilder.appendSuper(false);
  1595.                 return ;
  1596.             }
  1597.             if (this == object) {
  1598.                 return ;
  1599.             }
  1600.             final Results.Generated that = ((Results.Generated) object);
  1601.             equalsBuilder.append(this.getDate(), that.getDate());
  1602.             equalsBuilder.append(this.getTime(), that.getTime());
  1603.         }
  1604.  
  1605.         public boolean equals(Object object) {
  1606.             if (!(object instanceof Results.Generated)) {
  1607.                 return false;
  1608.             }
  1609.             if (this == object) {
  1610.                 return true;
  1611.             }
  1612.             final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  1613.             equals(object, equalsBuilder);
  1614.             return equalsBuilder.isEquals();
  1615.         }
  1616.  
  1617.         public void hashCode(HashCodeBuilder hashCodeBuilder) {
  1618.             hashCodeBuilder.append(this.getDate());
  1619.             hashCodeBuilder.append(this.getTime());
  1620.         }
  1621.  
  1622.         public int hashCode() {
  1623.             final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  1624.             hashCode(hashCodeBuilder);
  1625.             return hashCodeBuilder.toHashCode();
  1626.         }
  1627.  
  1628.  
  1629.         /**
  1630.          * <p>Java class for anonymous complex type.
  1631.          *
  1632.          * <p>The following schema fragment specifies the expected content contained within this class.
  1633.          *
  1634.          * <pre>
  1635.          * &lt;complexType>
  1636.          *   &lt;complexContent>
  1637.          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  1638.          *       &lt;sequence>
  1639.          *         &lt;element ref="{}Raw"/>
  1640.          *         &lt;element ref="{}Display"/>
  1641.          *       &lt;/sequence>
  1642.          *     &lt;/restriction>
  1643.          *   &lt;/complexContent>
  1644.          * &lt;/complexType>
  1645.          * </pre>
  1646.          *
  1647.          *
  1648.          */
  1649.         @XmlAccessorType(XmlAccessType.FIELD)
  1650.         @XmlType(name = "", propOrder = {
  1651.             "raw",
  1652.             "display"
  1653.         })
  1654.         @Entity(name = "Results$Generated$Date")
  1655.         @Table(name = "SPAN_DATE")
  1656.         @Inheritance(strategy = InheritanceType.JOINED)
  1657.         public static class Date
  1658.             implements Equals, HashCode
  1659.         {
  1660.  
  1661.             @XmlElement(name = "Raw", required = true)
  1662.             protected String raw;
  1663.             @XmlElement(name = "Display", required = true)
  1664.             protected String display;
  1665.             @XmlAttribute(name = "Hjid")
  1666.             protected Long hjid;
  1667.  
  1668.             /**
  1669.              * Gets the value of the raw property.
  1670.              *
  1671.              * @return
  1672.              *     possible object is
  1673.              *     {@link String }
  1674.              *
  1675.              */
  1676.             @Basic
  1677.             @Column(name = "RAW_", length = 255)
  1678.             public String getRaw() {
  1679.                 return raw;
  1680.             }
  1681.  
  1682.             /**
  1683.              * Sets the value of the raw property.
  1684.              *
  1685.              * @param value
  1686.              *     allowed object is
  1687.              *     {@link String }
  1688.              *
  1689.              */
  1690.             public void setRaw(String value) {
  1691.                 this.raw = value;
  1692.             }
  1693.  
  1694.             /**
  1695.              * Gets the value of the display property.
  1696.              *
  1697.              * @return
  1698.              *     possible object is
  1699.              *     {@link String }
  1700.              *
  1701.              */
  1702.             @Basic
  1703.             @Column(name = "DISPLAY", length = 255)
  1704.             public String getDisplay() {
  1705.                 return display;
  1706.             }
  1707.  
  1708.             /**
  1709.              * Sets the value of the display property.
  1710.              *
  1711.              * @param value
  1712.              *     allowed object is
  1713.              *     {@link String }
  1714.              *
  1715.              */
  1716.             public void setDisplay(String value) {
  1717.                 this.display = value;
  1718.             }
  1719.  
  1720.             /**
  1721.              * Gets the value of the hjid property.
  1722.              *
  1723.              * @return
  1724.              *     possible object is
  1725.              *     {@link Long }
  1726.              *
  1727.              */
  1728.             @Id
  1729.             @Column(name = "HJID")
  1730.             @GeneratedValue(generator = "marginserviceseq28") @GenericGenerator(name = "marginserviceseq28", strategy = "increment")
  1731.             public Long getHjid() {
  1732.                 return hjid;
  1733.             }
  1734.  
  1735.             /**
  1736.              * Sets the value of the hjid property.
  1737.              *
  1738.              * @param value
  1739.              *     allowed object is
  1740.              *     {@link Long }
  1741.              *
  1742.              */
  1743.             public void setHjid(Long value) {
  1744.                 this.hjid = value;
  1745.             }
  1746.  
  1747.             public void equals(Object object, EqualsBuilder equalsBuilder) {
  1748.                 if (!(object instanceof Results.Generated.Date)) {
  1749.                     equalsBuilder.appendSuper(false);
  1750.                     return ;
  1751.                 }
  1752.                 if (this == object) {
  1753.                     return ;
  1754.                 }
  1755.                 final Results.Generated.Date that = ((Results.Generated.Date) object);
  1756.                 equalsBuilder.append(this.getRaw(), that.getRaw());
  1757.                 equalsBuilder.append(this.getDisplay(), that.getDisplay());
  1758.             }
  1759.  
  1760.             public boolean equals(Object object) {
  1761.                 if (!(object instanceof Results.Generated.Date)) {
  1762.                     return false;
  1763.                 }
  1764.                 if (this == object) {
  1765.                     return true;
  1766.                 }
  1767.                 final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
  1768.                 equals(object, equalsBuilder);
  1769.                 return equalsBuilder.isEquals();
  1770.             }
  1771.  
  1772.             public void hashCode(HashCodeBuilder hashCodeBuilder) {
  1773.                 hashCodeBuilder.append(this.getRaw());
  1774.                 hashCodeBuilder.append(this.getDisplay());
  1775.             }
  1776.  
  1777.             public int hashCode() {
  1778.                 final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
  1779.                 hashCode(hashCodeBuilder);
  1780.                 return hashCodeBuilder.toHashCode();
  1781.             }
  1782.  
  1783.         }
  1784.  
  1785.     }
  1786.  
  1787. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement