/**
* Public constructor with address book name
* <p>
- * @param addressbookName Address book name
- * @param addressbookUser User instance
- * @param addressbookCreated When this entry has been created
+ * @param addressbookName Address book name
+ * @param addressbookUser User instance
*/
- public UserAddressbook (final String addressbookName, final User addressbookUser, final Calendar addressbookCreated) {
+ public UserAddressbook (final String addressbookName, final User addressbookUser) {
// Call default constructor
this();
- // Set name, user instance and creation timestamp
+ // Set name, user instance
this.addressbookName = addressbookName;
this.addressbookUser = addressbookUser;
- this.addressbookCreated = addressbookCreated;
}
/**
import java.text.MessageFormat;
import java.util.Calendar;
-import java.util.GregorianCalendar;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
private User shareUserSharee;
+ /**
+ * Default constructor
+ */
+ public AddressbookShare () {
+ }
+
/**
* Constructor with address book and sharee instance. Both parameters must
* not be null, their id numbers must be set and the adress book's user
this.shareAddressbook = addressbook;
this.shareUserOwner = addressbook.getAddressbookUser();
this.shareUserSharee = sharee;
- this.shareCreated = new GregorianCalendar();
- }
-
- /**
- * Default constructor
- */
- public AddressbookShare () {
}
@Override