]> git.mxchange.org Git - jbonuscard-core.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Sat, 3 Jun 2017 16:18:26 +0000 (18:18 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 3 Jun 2017 16:18:26 +0000 (18:18 +0200)
- renamed interface/class
- updated copyright
- updated jar(s)

Signed-off-by: Roland Häder <roland@mxchange.org>
16 files changed:
lib/jcontacts-business-core.jar
lib/jcontacts-core.jar
lib/jcore-logger-lib.jar
lib/jcoreee.jar
lib/jcountry-core.jar
lib/jmailer-ee.jar
lib/jphone-core.jar
lib/jproduct-core.jar
lib/juser-core.jar
src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java
src/org/mxchange/jfinancials/model/receipt/Billable.java [deleted file]
src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java [new file with mode: 0644]
src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java [new file with mode: 0644]
src/org/mxchange/jfinancials/model/receipt/Receipt.java [deleted file]
src/org/mxchange/jfinancials/model/receipt/entry/BillableReceiptEntry.java
src/org/mxchange/jfinancials/model/receipt/entry/ReceiptEntry.java

index a0ca53b9d02f36e1d30269cefd780f092ac072e0..6de90379984e4536915f0abf67334246fccec75a 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index eaa2463471426757016ba6786661d4a7b471c087..54a8731c3ecc2973c6f9286a08706a16c4a442ab 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index c8046481dc6d1d52e4cec0137a3fb47448a8f795..3e757cdc2af9b522811655bbbacd2cd6dce2cba9 100644 (file)
Binary files a/lib/jcore-logger-lib.jar and b/lib/jcore-logger-lib.jar differ
index 7f47a54432a763f3d0b883e7cec8d940444c27c1..1c4dbecc0ac4e4d62ad903e93f26d31c47b8ae2e 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 5cbad453c2f8698f9ab16791a4e97baef7fa6686..e91ed0ad88c8635e2a9fccb45c289eefa8d2f943 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index 8452960c3b4799cdfc9cd2ceda1a0c135c9ba189..9b3912f2f17efabb37a46678205ad319a6f2c52e 100644 (file)
Binary files a/lib/jmailer-ee.jar and b/lib/jmailer-ee.jar differ
index 9587335f2376f8ddf1f9275c0ec27c454450b266..6f596cc999fe3f3bcc5ecb56de3a09ef90910f9f 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 081cf1fc5285da28641848b97101a71eb8ae1b58..58afdc537b85c6c7de127b2b27f86ec60a4ed6fd 100644 (file)
Binary files a/lib/jproduct-core.jar and b/lib/jproduct-core.jar differ
index aa8a72393fba606d8e39c915068e9ea7ca5faf74..fd411f914c67a74da6daa0cce6a4534883b0b9ca 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index e9a8b3507ae2abb607d9960bd8cbbc27ce8097a5..4d8d833bc1eda2f0b704cd0b743c6aa127bc7a17 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016, 2017 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
diff --git a/src/org/mxchange/jfinancials/model/receipt/Billable.java b/src/org/mxchange/jfinancials/model/receipt/Billable.java
deleted file mode 100644 (file)
index fe2f70c..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Copyright (C) 2017 Roland Häder<roland@mxchange.org>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jfinancials.model.receipt;
-
-import java.io.Serializable;
-import java.util.Calendar;
-import org.mxchange.jcontactsbusiness.BusinessContact;
-import org.mxchange.jproduct.model.payment.PaymentType;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- * An interface for receipts
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public interface Billable extends Serializable {
-
-       /**
-        * Getter for when this receipt has been created in database
-        * <p>
-        * @return Receipt creation timestamp
-        */
-       Calendar getReceiptCreated ();
-
-       /**
-        * Setter for when this receipt has been created in database
-        * <p>
-        * @param receiptCreated Receipt creation timestamp
-        */
-       void setReceiptCreated (final Calendar receiptCreated);
-
-       /**
-        * Getter for primary key
-        * <p>
-        * @return Primary key
-        */
-       Long getReceiptId ();
-
-       /**
-        * Setter for primary key
-        * <p>
-        * @param receiptId Primary key
-        */
-       void setReceiptId (final Long receiptId);
-
-       /**
-        * Getter for receipt's user
-        * <p>
-        * @return Receipt's user
-        */
-       User getReceiptUser ();
-
-       /**
-        * Setter for receipt's user
-        * <p>
-        * @param receiptUser Receipt's user
-        */
-       void setReceiptUser (final User receiptUser);
-
-       /**
-        * Getter for seller instance
-        * <p>
-        * @return Seller instance
-        */
-       BusinessContact getReceiptSeller ();
-
-       /**
-        * Setter for seller instance
-        * <p>
-        * @param receiptSeller Seller instance
-        */
-       void setReceiptSeller (final BusinessContact receiptSeller);
-
-       /**
-        * Getter for payment type
-        * <p>
-        * @return Payment type
-        */
-       PaymentType getReceiptPaymentType ();
-
-       /**
-        * Setter for payment type
-        * <p>
-        * @param receiptPaymentType Payment type
-        */
-       void setReceiptPaymentType (final PaymentType receiptPaymentType);
-
-       @Override
-       boolean equals (final Object object);
-
-       @Override
-       int hashCode ();
-
-}
diff --git a/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java b/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java
new file mode 100644 (file)
index 0000000..a7b49c4
--- /dev/null
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2016, 2017 Roland Häder<roland@mxchange.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jfinancials.model.receipt;
+
+import java.io.Serializable;
+import java.util.Calendar;
+import org.mxchange.jcontactsbusiness.BusinessContact;
+import org.mxchange.jproduct.model.payment.PaymentType;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An interface for receipts
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface BillableReceipt extends Serializable {
+
+       /**
+        * Getter for when this receipt has been created in database
+        * <p>
+        * @return Receipt creation timestamp
+        */
+       Calendar getReceiptCreated ();
+
+       /**
+        * Setter for when this receipt has been created in database
+        * <p>
+        * @param receiptCreated Receipt creation timestamp
+        */
+       void setReceiptCreated (final Calendar receiptCreated);
+
+       /**
+        * Getter for primary key
+        * <p>
+        * @return Primary key
+        */
+       Long getReceiptId ();
+
+       /**
+        * Setter for primary key
+        * <p>
+        * @param receiptId Primary key
+        */
+       void setReceiptId (final Long receiptId);
+
+       /**
+        * Getter for receipt's user
+        * <p>
+        * @return Receipt's user
+        */
+       User getReceiptUser ();
+
+       /**
+        * Setter for receipt's user
+        * <p>
+        * @param receiptUser Receipt's user
+        */
+       void setReceiptUser (final User receiptUser);
+
+       /**
+        * Getter for seller instance
+        * <p>
+        * @return Seller instance
+        */
+       BusinessContact getReceiptSeller ();
+
+       /**
+        * Setter for seller instance
+        * <p>
+        * @param receiptSeller Seller instance
+        */
+       void setReceiptSeller (final BusinessContact receiptSeller);
+
+       /**
+        * Getter for payment type
+        * <p>
+        * @return Payment type
+        */
+       PaymentType getReceiptPaymentType ();
+
+       /**
+        * Setter for payment type
+        * <p>
+        * @param receiptPaymentType Payment type
+        */
+       void setReceiptPaymentType (final PaymentType receiptPaymentType);
+
+       @Override
+       boolean equals (final Object object);
+
+       @Override
+       int hashCode ();
+
+}
diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java
new file mode 100644 (file)
index 0000000..34fdc9c
--- /dev/null
@@ -0,0 +1,210 @@
+/*
+ * Copyright (C) 2016, 2017 Roland Häder<roland@mxchange.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jfinancials.model.receipt;
+
+import java.util.Calendar;
+import java.util.Objects;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.persistence.Transient;
+import org.mxchange.jcontactsbusiness.BusinessContact;
+import org.mxchange.jcontactsbusiness.CompanyContact;
+import org.mxchange.jproduct.model.payment.PaymentType;
+import org.mxchange.jusercore.model.user.LoginUser;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ *
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Entity (name = "receipts")
+@Table (
+               name = "receipts"
+)
+@SuppressWarnings ("PersistenceUnitPresent")
+public class FinancialReceipt implements BillableReceipt {
+
+       /**
+        * Serial number
+        */
+       @Transient
+       private static final long serialVersionUID = 185_867_217_461L;
+
+       /**
+        * When this receipt has been created
+        */
+       @Basic (optional = false)
+       @Temporal (TemporalType.TIMESTAMP)
+       @Column (name = "receipt_created", nullable = false)
+       private Calendar receiptCreated;
+
+       /**
+        * Primary key
+        */
+       @Id
+       @GeneratedValue (strategy = GenerationType.IDENTITY)
+       @Column (name = "receipt_id", nullable = false, updatable = false)
+       private Long receiptId;
+
+       /**
+        * Payment type (cash, credit card, EC card ...)
+        */
+       @Basic (optional = false)
+       @Column (name = "receipt_payment_type", nullable = false)
+       @Enumerated (EnumType.STRING)
+       private PaymentType receiptPaymentType;
+
+       /**
+        * Seller instance
+        */
+       @JoinColumn (name = "receipt_seller_id", referencedColumnName = "company_id", nullable = false, updatable = false)
+       @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.REFRESH, optional = false)
+       private BusinessContact receiptSeller;
+
+       /**
+        * Which user this receipt belongs to
+        */
+       @JoinColumn (name = "receipt_user_id", referencedColumnName = "user_id", nullable = false, updatable = false)
+       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
+       private User receiptUser;
+
+       /**
+        * Default constructor
+        */
+       public FinancialReceipt () {
+       }
+
+       /**
+        * Constructor with payment type, seller and user
+        * <p>
+        * @param receiptPaymentType Payment type
+        * @param receiptSeller      Seller instance
+        * @param receiptUser        User instance
+        */
+       public FinancialReceipt (final PaymentType receiptPaymentType, final BusinessContact receiptSeller, final User receiptUser) {
+               // Call other constructor first
+               this();
+
+               // Set all
+               this.receiptPaymentType = receiptPaymentType;
+               this.receiptSeller = receiptSeller;
+               this.receiptUser = receiptUser;
+       }
+
+       @Override
+       public boolean equals (final Object object) {
+               if (this == object) {
+                       return true;
+               }
+               if (null == object) {
+                       return false;
+               } else if (this.getClass() != object.getClass()) {
+                       return false;
+               }
+
+               final BillableReceipt receipt = (BillableReceipt) object;
+
+               if (!Objects.equals(this.getReceiptId(), receipt.getReceiptId())) {
+                       return false;
+               } else if (this.getReceiptPaymentType() != receipt.getReceiptPaymentType()) {
+                       return false;
+               } else if (!Objects.equals(this.getReceiptSeller(), receipt.getReceiptSeller())) {
+                       return false;
+               } else if (!Objects.equals(this.getReceiptUser(), receipt.getReceiptUser())) {
+                       return false;
+               }
+
+               return true;
+       }
+
+       @Override
+       @SuppressWarnings ("ReturnOfDateField")
+       public Calendar getReceiptCreated () {
+               return this.receiptCreated;
+       }
+
+       @Override
+       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+       public void setReceiptCreated (final Calendar receiptCreated) {
+               this.receiptCreated = receiptCreated;
+       }
+
+       @Override
+       public Long getReceiptId () {
+               return this.receiptId;
+       }
+
+       @Override
+       public void setReceiptId (final Long receiptId) {
+               this.receiptId = receiptId;
+       }
+
+       @Override
+       public PaymentType getReceiptPaymentType () {
+               return this.receiptPaymentType;
+       }
+
+       @Override
+       public void setReceiptPaymentType (final PaymentType receiptPaymentType) {
+               this.receiptPaymentType = receiptPaymentType;
+       }
+
+       @Override
+       public BusinessContact getReceiptSeller () {
+               return this.receiptSeller;
+       }
+
+       @Override
+       public void setReceiptSeller (final BusinessContact receiptSeller) {
+               this.receiptSeller = receiptSeller;
+       }
+
+       @Override
+       public User getReceiptUser () {
+               return this.receiptUser;
+       }
+
+       @Override
+       public void setReceiptUser (final User receiptUser) {
+               this.receiptUser = receiptUser;
+       }
+
+       @Override
+       public int hashCode () {
+               int hash = 5;
+
+               hash = 89 * hash + Objects.hashCode(this.getReceiptId());
+               hash = 89 * hash + Objects.hashCode(this.getReceiptPaymentType());
+               hash = 89 * hash + Objects.hashCode(this.getReceiptSeller());
+               hash = 89 * hash + Objects.hashCode(this.getReceiptUser());
+
+               return hash;
+       }
+
+}
diff --git a/src/org/mxchange/jfinancials/model/receipt/Receipt.java b/src/org/mxchange/jfinancials/model/receipt/Receipt.java
deleted file mode 100644 (file)
index e3d1057..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-/*
- * Copyright (C) 2017 Roland Häder<roland@mxchange.org>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jfinancials.model.receipt;
-
-import java.util.Calendar;
-import java.util.Objects;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.EnumType;
-import javax.persistence.Enumerated;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.OneToOne;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.persistence.Transient;
-import org.mxchange.jcontactsbusiness.BusinessContact;
-import org.mxchange.jcontactsbusiness.CompanyContact;
-import org.mxchange.jproduct.model.payment.PaymentType;
-import org.mxchange.jusercore.model.user.LoginUser;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- *
- * @author Roland Häder<roland@mxchange.org>
- */
-@Entity (name = "receipts")
-@Table (
-               name = "receipts"
-)
-@SuppressWarnings ("PersistenceUnitPresent")
-public class Receipt implements Billable {
-
-       /**
-        * Serial number
-        */
-       @Transient
-       private static final long serialVersionUID = 185_867_217_461L;
-
-       /**
-        * When this receipt has been created
-        */
-       @Basic (optional = false)
-       @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "receipt_created", nullable = false)
-       private Calendar receiptCreated;
-
-       /**
-        * Primary key
-        */
-       @Id
-       @GeneratedValue (strategy = GenerationType.IDENTITY)
-       @Column (name = "receipt_id", nullable = false, updatable = false)
-       private Long receiptId;
-
-       /**
-        * Payment type (cash, credit card, EC card ...)
-        */
-       @Basic (optional = false)
-       @Column (name = "receipt_payment_type", nullable = false)
-       @Enumerated (EnumType.STRING)
-       private PaymentType receiptPaymentType;
-
-       /**
-        * Seller instance
-        */
-       @JoinColumn (name = "receipt_seller_id", referencedColumnName = "company_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.REFRESH, optional = false)
-       private BusinessContact receiptSeller;
-
-       /**
-        * Which user this receipt belongs to
-        */
-       @JoinColumn (name = "receipt_user_id", referencedColumnName = "user_id", nullable = false, updatable = false)
-       @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
-       private User receiptUser;
-
-       /**
-        * Default constructor
-        */
-       public Receipt () {
-       }
-
-       /**
-        * Constructor with payment type, seller and user
-        * <p>
-        * @param receiptPaymentType Payment type
-        * @param receiptSeller      Seller instance
-        * @param receiptUser        User instance
-        */
-       public Receipt (final PaymentType receiptPaymentType, final BusinessContact receiptSeller, final User receiptUser) {
-               // Call other constructor first
-               this();
-
-               // Set all
-               this.receiptPaymentType = receiptPaymentType;
-               this.receiptSeller = receiptSeller;
-               this.receiptUser = receiptUser;
-       }
-
-       @Override
-       public boolean equals (final Object object) {
-               if (this == object) {
-                       return true;
-               }
-               if (null == object) {
-                       return false;
-               } else if (this.getClass() != object.getClass()) {
-                       return false;
-               }
-
-               final Billable receipt = (Billable) object;
-
-               if (!Objects.equals(this.getReceiptId(), receipt.getReceiptId())) {
-                       return false;
-               } else if (this.getReceiptPaymentType() != receipt.getReceiptPaymentType()) {
-                       return false;
-               } else if (!Objects.equals(this.getReceiptSeller(), receipt.getReceiptSeller())) {
-                       return false;
-               } else if (!Objects.equals(this.getReceiptUser(), receipt.getReceiptUser())) {
-                       return false;
-               }
-
-               return true;
-       }
-
-       @Override
-       @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getReceiptCreated () {
-               return this.receiptCreated;
-       }
-
-       @Override
-       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setReceiptCreated (final Calendar receiptCreated) {
-               this.receiptCreated = receiptCreated;
-       }
-
-       @Override
-       public Long getReceiptId () {
-               return this.receiptId;
-       }
-
-       @Override
-       public void setReceiptId (final Long receiptId) {
-               this.receiptId = receiptId;
-       }
-
-       @Override
-       public PaymentType getReceiptPaymentType () {
-               return this.receiptPaymentType;
-       }
-
-       @Override
-       public void setReceiptPaymentType (final PaymentType receiptPaymentType) {
-               this.receiptPaymentType = receiptPaymentType;
-       }
-
-       @Override
-       public BusinessContact getReceiptSeller () {
-               return this.receiptSeller;
-       }
-
-       @Override
-       public void setReceiptSeller (final BusinessContact receiptSeller) {
-               this.receiptSeller = receiptSeller;
-       }
-
-       @Override
-       public User getReceiptUser () {
-               return this.receiptUser;
-       }
-
-       @Override
-       public void setReceiptUser (final User receiptUser) {
-               this.receiptUser = receiptUser;
-       }
-
-       @Override
-       public int hashCode () {
-               int hash = 5;
-
-               hash = 89 * hash + Objects.hashCode(this.getReceiptId());
-               hash = 89 * hash + Objects.hashCode(this.getReceiptPaymentType());
-               hash = 89 * hash + Objects.hashCode(this.getReceiptSeller());
-               hash = 89 * hash + Objects.hashCode(this.getReceiptUser());
-
-               return hash;
-       }
-
-}
index 6f066e7775069330782c0845fcc85f5d5e0715c0..8dbbfa5f0a8b70942d46300d124cc5511e158b65 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder<roland@mxchange.org>
+ * Copyright (C) 2016, 2017 Roland Häder<roland@mxchange.org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -18,8 +18,8 @@ package org.mxchange.jfinancials.model.receipt.entry;
 
 import java.io.Serializable;
 import java.util.Calendar;
-import org.mxchange.jfinancials.model.receipt.Billable;
 import org.mxchange.jproduct.model.product.Product;
+import org.mxchange.jfinancials.model.receipt.BillableReceipt;
 
 /**
  * An interface for receipt entries
@@ -61,14 +61,14 @@ public interface BillableReceiptEntry extends Serializable {
         * <p>
         * @return Receipt instance
         */
-       Billable getEntryReceipt ();
+       BillableReceipt getEntryReceipt ();
 
        /**
         * Setter for receipt instance
         * <p>
         * @param entryReceipt Receipt instance
         */
-       void setEntryReceipt (final Billable entryReceipt);
+       void setEntryReceipt (final BillableReceipt entryReceipt);
 
        /**
         * Getter for linked product
index db4ee707dcab82839314099a8b074a67af0b22f9..6fb49b9e4941781afd0ea9cf23f23803d68e3c4b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder<roland@mxchange.org>
+ * Copyright (C) 2016, 2017 Roland Häder<roland@mxchange.org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -33,10 +33,10 @@ import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
 import javax.persistence.Transient;
-import org.mxchange.jfinancials.model.receipt.Billable;
-import org.mxchange.jfinancials.model.receipt.Receipt;
+import org.mxchange.jfinancials.model.receipt.FinancialReceipt;
 import org.mxchange.jproduct.model.product.GenericProduct;
 import org.mxchange.jproduct.model.product.Product;
+import org.mxchange.jfinancials.model.receipt.BillableReceipt;
 
 /**
  * A class for entryReceipt entries
@@ -102,8 +102,8 @@ public class ReceiptEntry implements BillableReceiptEntry {
         * Connected entryReceipt entry
         */
        @JoinColumn (name = "entry_receipt_id", referencedColumnName = "receipt_id", nullable = false, updatable = false, unique = true)
-       @OneToOne (targetEntity = Receipt.class, cascade = CascadeType.REFRESH, optional = false)
-       private Billable entryReceipt;
+       @OneToOne (targetEntity = FinancialReceipt.class, cascade = CascadeType.REFRESH, optional = false)
+       private BillableReceipt entryReceipt;
 
        /**
         * Default constructor
@@ -117,9 +117,9 @@ public class ReceiptEntry implements BillableReceiptEntry {
         * @param entryProduct         Product instance
         * @param entryProductPrice    Product price (copied)
         * @param entryProductQuantity Product quantity
-        * @param entryReceipt         Receipt instance
+        * @param entryReceipt         FinancialReceipt instance
         */
-       public ReceiptEntry (final Product entryProduct, final Float entryProductPrice, final Long entryProductQuantity, final Billable entryReceipt) {
+       public ReceiptEntry (final Product entryProduct, final Float entryProductPrice, final Long entryProductQuantity, final BillableReceipt entryReceipt) {
                this.entryProduct = entryProduct;
                this.entryProductPrice = entryProductPrice;
                this.entryProductQuantity = entryProductQuantity;
@@ -206,12 +206,12 @@ public class ReceiptEntry implements BillableReceiptEntry {
        }
 
        @Override
-       public Billable getEntryReceipt () {
+       public BillableReceipt getEntryReceipt () {
                return this.entryReceipt;
        }
 
        @Override
-       public void setEntryReceipt (final Billable entryReceipt) {
+       public void setEntryReceipt (final BillableReceipt entryReceipt) {
                this.entryReceipt = entryReceipt;
        }