import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jphone.phonenumbers.smsprovider.CellphoneProvider;
import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
*/
@JoinColumn (name = "cellphone_provider_id", nullable = false)
@OneToOne (targetEntity = CellphoneProvider.class, cascade = CascadeType.ALL, optional = false)
+ @Transient
private SmsProvider cellphoneProvider;
/**
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jcountry.data.CountryData;
*/
@JoinColumn (name = "fax_country_id", nullable = false)
@OneToOne (targetEntity = CountryData.class, optional = false, cascade = CascadeType.ALL)
+ @Transient
private Country faxCountry;
/**
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jcountry.data.CountryData;
*/
@JoinColumn (name = "phone_country_id", nullable = false, updatable = false)
@OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
+ @Transient
private Country phoneCountry;
/**
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;
+import javax.persistence.Transient;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jcountry.data.CountryData;
*/
@JoinColumn (name = "provider_country_id", nullable = false)
@OneToOne (targetEntity = CountryData.class, optional = false, cascade = CascadeType.ALL)
+ @Transient
private Country country;
@Override