package org.mxchange.jfinancials.model.income;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jfinancials.model.income.interval.FinancialInterval;
import org.mxchange.jusercore.model.user.User;
* <p>
* @return Income-created timestamp
*/
- Calendar getIncomeCreated ();
+ Date getIncomeCreated ();
/**
* Setter for income-created timestamp
* <p>
* @param incomeCreated Income-created timestamp
*/
- void setIncomeCreated (final Calendar incomeCreated);
+ void setIncomeCreated (final Date incomeCreated);
/**
* Getter for whether income is enabled
* <p>
* @return Income-updated timestamp
*/
- Calendar getIncomeUpdated ();
+ Date getIncomeUpdated ();
/**
* Setter for income-updated timestamp
* <p>
* @param incomeUpdated Income-updated timestamp
*/
- void setIncomeUpdated (final Calendar incomeUpdated);
+ void setIncomeUpdated (final Date incomeUpdated);
/**
* Getter for connected user account
*/
package org.mxchange.jfinancials.model.income;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "income_created", nullable = false, updatable = false)
- private Calendar incomeCreated;
+ private Date incomeCreated;
/**
* Income enabled (default) or disabled (no longer receiving income but need
*/
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "income_updated", insertable = false)
- private Calendar incomeUpdated;
+ private Date incomeUpdated;
/**
* Connected user account
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getIncomeCreated () {
+ public Date getIncomeCreated () {
return this.incomeCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setIncomeCreated (Calendar incomeCreated) {
+ public void setIncomeCreated (Date incomeCreated) {
this.incomeCreated = incomeCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getIncomeUpdated () {
+ public Date getIncomeUpdated () {
return this.incomeUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setIncomeUpdated (Calendar incomeUpdated) {
+ public void setIncomeUpdated (Date incomeUpdated) {
this.incomeUpdated = incomeUpdated;
}
package org.mxchange.jfinancials.model.receipt;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
import org.mxchange.jproduct.model.payment.PaymentType;
import org.mxchange.jusercore.model.user.User;
* <p>
* @return Receipt creation timestamp
*/
- Calendar getReceiptCreated ();
+ Date getReceiptCreated ();
/**
* Setter for when this receipt has been created in database
* <p>
* @param receiptCreated Receipt creation timestamp
*/
- void setReceiptCreated (final Calendar receiptCreated);
+ void setReceiptCreated (final Date receiptCreated);
/**
* Getter for when this receipt has been issued (as written on it)
* <p>
* @return Receipt issue timestamp
*/
- Calendar getReceiptIssued ();
+ Date getReceiptIssued ();
/**
* Setter for when this receipt has been issued (as written on it)
* <p>
* @param receiptIssued Receipt issue timestamp
*/
- void setReceiptIssued (final Calendar receiptIssued);
+ void setReceiptIssued (final Date receiptIssued);
/**
* Getter for primary key
package org.mxchange.jfinancials.model.receipt;
import java.text.MessageFormat;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "receipt_created", nullable = false)
- private Calendar receiptCreated;
+ private Date receiptCreated;
/**
* Primary key
@Basic (optional = false)
@Temporal (TemporalType.DATE)
@Column (name = "receipt_issued", nullable = false)
- private Calendar receiptIssued;
+ private Date receiptIssued;
/**
* Receipt number
* @throws NullPointerException If user instance is not set
* @throws IllegalArgumentException If user instance's userId is invalid
*/
- public FinancialReceipt (final PaymentType receiptPaymentType, final BranchOffice receiptBranchOffice, final User receiptUser, final Calendar receiptIssued) {
+ public FinancialReceipt (final PaymentType receiptPaymentType, final BranchOffice receiptBranchOffice, final User receiptUser, final Date receiptIssued) {
// Call other constructor first
this(receiptPaymentType, receiptBranchOffice, receiptIssued);
* @throws NullPointerException If user instance is not set
* @throws IllegalArgumentException If branchId is invalid
*/
- public FinancialReceipt (final PaymentType receiptPaymentType, final BranchOffice receiptBranchOffice, final Calendar receiptIssued) {
+ public FinancialReceipt (final PaymentType receiptPaymentType, final BranchOffice receiptBranchOffice, final Date receiptIssued) {
// Call other constructor first
this();
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getReceiptCreated () {
+ public Date getReceiptCreated () {
return this.receiptCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setReceiptCreated (final Calendar receiptCreated) {
+ public void setReceiptCreated (final Date receiptCreated) {
this.receiptCreated = receiptCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getReceiptIssued () {
+ public Date getReceiptIssued () {
return this.receiptIssued;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setReceiptIssued (final Calendar receiptIssued) {
+ public void setReceiptIssued (final Date receiptIssued) {
this.receiptIssued = receiptIssued;
}
package org.mxchange.jfinancials.model.receipt.entry;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jfinancials.model.receipt.BillableReceipt;
import org.mxchange.jproduct.model.product.Product;
* <p>
* @return When this entry has been created
*/
- Calendar getEntryCreated ();
+ Date getEntryCreated ();
/**
* Setter when this receipt entry has been created in database
* <p>
* @param entryCreated When this entry has been created
*/
- void setEntryCreated (final Calendar entryCreated);
+ void setEntryCreated (final Date entryCreated);
/**
* Getter for primary key
*/
package org.mxchange.jfinancials.model.receipt.entry;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "entry_created", nullable = false)
- private Calendar entryCreated;
+ private Date entryCreated;
/**
* Primary key
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getEntryCreated () {
+ public Date getEntryCreated () {
return this.entryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setEntryCreated (final Calendar entryCreated) {
+ public void setEntryCreated (final Date entryCreated) {
this.entryCreated = entryCreated;
}