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;
* <p>
* @return Addressbook creation timestamp
*/
- Calendar getAddressbookCreated ();
+ Date getAddressbookCreated ();
/**
* Setter for addressbook creation timestamp
* <p>
* @param addressbookCreated Addressbook creation timestamp
*/
- void setAddressbookCreated (final Calendar addressbookCreated);
+ void setAddressbookCreated (final Date addressbookCreated);
/**
* Getter for addressbook's name
* <p>
* @return Last locked timestamp
*/
- Calendar getAddressbookLastLocked ();
+ Date getAddressbookLastLocked ();
/**
* Setter for last locked timestamp
* <p>
* @param addressbookLastLocked Last locked timestamp
*/
- void setAddressbookLastLocked (final Calendar addressbookLastLocked);
+ void setAddressbookLastLocked (final Date addressbookLastLocked);
/**
* Getter for last locked reason
*/
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;
@Basic (optional = false)
@Temporal (value = TemporalType.TIMESTAMP)
@Column (name = "addressbook_created", nullable = false, updatable = false)
- private Calendar addressbookCreated;
+ private Date addressbookCreated;
/**
* Id number
*/
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "addressbook_last_locked")
- private Calendar addressbookLastLocked;
+ private Date addressbookLastLocked;
/**
* Last locked timestamp
}
@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;
}
}
@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;
}
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;
* <p>
* @return Entry created timestamp
*/
- Calendar getAddressbookEntryCreated ();
+ Date getAddressbookEntryCreated ();
/**
* Setter for entry created timestamp
* <p>
* @param addressbookEntryCreated Entry created timestamp
*/
- void setAddressbookEntryCreated (final Calendar addressbookEntryCreated);
+ void setAddressbookEntryCreated (final Date addressbookEntryCreated);
/**
* Getter for private contact
*/
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;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "entry_created", nullable = false, updatable = false)
- private Calendar addressbookEntryCreated;
+ private Date addressbookEntryCreated;
/**
* Id number
@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;
}