From: Roland Häder Date: Fri, 22 Sep 2017 21:42:32 +0000 (+0200) Subject: Need to change java.util.Calendar (bye bye) to java.util.Date. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d187316251dfaa5930666af1bf3b3508bc082818;p=jaddressbook-core.git Need to change java.util.Calendar (bye bye) to java.util.Date. Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jaddressbook/model/addressbook/Addressbook.java b/src/org/mxchange/jaddressbook/model/addressbook/Addressbook.java index 55cb02b..fd47eac 100644 --- a/src/org/mxchange/jaddressbook/model/addressbook/Addressbook.java +++ b/src/org/mxchange/jaddressbook/model/addressbook/Addressbook.java @@ -17,7 +17,7 @@ package org.mxchange.jaddressbook.model.addressbook; import java.io.Serializable; -import java.util.Calendar; +import java.util.Date; import org.mxchange.jaddressbook.model.addressbook.status.AddressbokStatus; import org.mxchange.jusercore.model.user.User; @@ -47,14 +47,14 @@ public interface Addressbook extends Serializable { *

* @return Addressbook creation timestamp */ - Calendar getAddressbookCreated (); + Date getAddressbookCreated (); /** * Setter for addressbook creation timestamp *

* @param addressbookCreated Addressbook creation timestamp */ - void setAddressbookCreated (final Calendar addressbookCreated); + void setAddressbookCreated (final Date addressbookCreated); /** * Getter for addressbook's name @@ -103,14 +103,14 @@ public interface Addressbook extends Serializable { *

* @return Last locked timestamp */ - Calendar getAddressbookLastLocked (); + Date getAddressbookLastLocked (); /** * Setter for last locked timestamp *

* @param addressbookLastLocked Last locked timestamp */ - void setAddressbookLastLocked (final Calendar addressbookLastLocked); + void setAddressbookLastLocked (final Date addressbookLastLocked); /** * Getter for last locked reason diff --git a/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java b/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java index a842d4c..efbfcc2 100644 --- a/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java +++ b/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java @@ -16,7 +16,7 @@ */ package org.mxchange.jaddressbook.model.addressbook; -import java.util.Calendar; +import java.util.Date; import java.util.Objects; import javax.persistence.Basic; import javax.persistence.CascadeType; @@ -69,7 +69,7 @@ public class UserAddressbook implements Addressbook { @Basic (optional = false) @Temporal (value = TemporalType.TIMESTAMP) @Column (name = "addressbook_created", nullable = false, updatable = false) - private Calendar addressbookCreated; + private Date addressbookCreated; /** * Id number @@ -84,7 +84,7 @@ public class UserAddressbook implements Addressbook { */ @Temporal (TemporalType.TIMESTAMP) @Column (name = "addressbook_last_locked") - private Calendar addressbookLastLocked; + private Date addressbookLastLocked; /** * Last locked timestamp @@ -166,12 +166,12 @@ public class UserAddressbook implements Addressbook { } @Override - public Calendar getAddressbookCreated () { + public Date getAddressbookCreated () { return this.addressbookCreated; } @Override - public void setAddressbookCreated (final Calendar addressbookCreated) { + public void setAddressbookCreated (final Date addressbookCreated) { this.addressbookCreated = addressbookCreated; } @@ -186,12 +186,12 @@ public class UserAddressbook implements Addressbook { } @Override - public Calendar getAddressbookLastLocked () { + public Date getAddressbookLastLocked () { return this.addressbookLastLocked; } @Override - public void setAddressbookLastLocked (final Calendar addressbookLastLocked) { + public void setAddressbookLastLocked (final Date addressbookLastLocked) { this.addressbookLastLocked = addressbookLastLocked; } diff --git a/src/org/mxchange/jaddressbook/model/addressbook/entry/AddressbookEntry.java b/src/org/mxchange/jaddressbook/model/addressbook/entry/AddressbookEntry.java index 77e083d..7db2136 100644 --- a/src/org/mxchange/jaddressbook/model/addressbook/entry/AddressbookEntry.java +++ b/src/org/mxchange/jaddressbook/model/addressbook/entry/AddressbookEntry.java @@ -17,7 +17,7 @@ package org.mxchange.jaddressbook.model.addressbook.entry; import java.io.Serializable; -import java.util.Calendar; +import java.util.Date; import org.mxchange.jaddressbook.model.addressbook.Addressbook; import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData; @@ -62,14 +62,14 @@ public interface AddressbookEntry extends Serializable { *

* @return Entry created timestamp */ - Calendar getAddressbookEntryCreated (); + Date getAddressbookEntryCreated (); /** * Setter for entry created timestamp *

* @param addressbookEntryCreated Entry created timestamp */ - void setAddressbookEntryCreated (final Calendar addressbookEntryCreated); + void setAddressbookEntryCreated (final Date addressbookEntryCreated); /** * Getter for private contact diff --git a/src/org/mxchange/jaddressbook/model/addressbook/entry/UserAddressbookEntry.java b/src/org/mxchange/jaddressbook/model/addressbook/entry/UserAddressbookEntry.java index 477a295..885929f 100644 --- a/src/org/mxchange/jaddressbook/model/addressbook/entry/UserAddressbookEntry.java +++ b/src/org/mxchange/jaddressbook/model/addressbook/entry/UserAddressbookEntry.java @@ -16,7 +16,7 @@ */ package org.mxchange.jaddressbook.model.addressbook.entry; -import java.util.Calendar; +import java.util.Date; import java.util.Objects; import javax.persistence.Basic; import javax.persistence.CascadeType; @@ -74,7 +74,7 @@ public class UserAddressbookEntry implements AddressbookEntry { @Basic (optional = false) @Temporal (TemporalType.TIMESTAMP) @Column (name = "entry_created", nullable = false, updatable = false) - private Calendar addressbookEntryCreated; + private Date addressbookEntryCreated; /** * Id number @@ -142,13 +142,13 @@ public class UserAddressbookEntry implements AddressbookEntry { @Override @SuppressWarnings ("ReturnOfDateField") - public Calendar getAddressbookEntryCreated () { + public Date getAddressbookEntryCreated () { return this.addressbookEntryCreated; } @Override @SuppressWarnings ("AssignmentToDateFieldFromParameter") - public void setAddressbookEntryCreated (final Calendar addressbookEntryCreated) { + public void setAddressbookEntryCreated (final Date addressbookEntryCreated) { this.addressbookEntryCreated = addressbookEntryCreated; }