import org.mxchange.jcontactsbusiness.logo.BusinessLogo;
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jusercore.model.user.User;
/**
* A POJI for basic business data
*/
void setCompanyWebsiteUrl (final String companyWebsiteUrl);
- /**
- * Getter for user owner instance
- * <p>
- * @return User owner instance
- */
- User getCompanyBasicUserOwner ();
-
- /**
- * Setter for user owner instance
- * <p>
- * @param companyBasicUserOwner User owner instance
- */
- void setCompanyBasicUserOwner (final User companyBasicUserOwner);
-
/**
* Getter for timestamp when this entry has been created
* <p>
@Override
int hashCode ();
+
}
import org.mxchange.jphone.phonenumbers.fax.FaxNumber;
import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
-import org.mxchange.jusercore.model.user.LoginUser;
-import org.mxchange.jusercore.model.user.User;
/**
* A POJO for basic company data
@GeneratedValue (strategy = GenerationType.IDENTITY)
private Long companyBasicId;
- /**
- * User owner instance
- */
- @JoinColumn (name = "company_user_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
- private User companyBasicUserOwner;
-
/**
* Comments (any)
*/
return false;
} else if (!Objects.equals(this.getCompanyTaxNumber(), other.getCompanyTaxNumber())) {
return false;
- } else if (!Objects.equals(this.getCompanyBasicUserOwner(), other.getCompanyBasicUserOwner())) {
- return false;
}
return true;
this.companyBasicId = companyBasicId;
}
- @Override
- public User getCompanyBasicUserOwner () {
- return this.companyBasicUserOwner;
- }
-
- @Override
- public void setCompanyBasicUserOwner (final User companyBasicUserOwner) {
- this.companyBasicUserOwner = companyBasicUserOwner;
- }
-
@Override
public String getCompanyComments () {
return this.companyComments;
hash = 53 * hash + Objects.hashCode(this.getCompanyLegalStatus());
hash = 53 * hash + Objects.hashCode(this.getCompanyName());
hash = 53 * hash + Objects.hashCode(this.getCompanyTaxNumber());
- hash = 53 * hash + Objects.hashCode(this.getCompanyBasicUserOwner());
return hash;
}