From: Roland Haeder Date: Fri, 16 Oct 2015 11:14:06 +0000 (+0200) Subject: added missing cascade type, at least MERGE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49c0b9f178885122ca3461d41ec85ce48c44ec7f;p=jphone-core.git added missing cascade type, at least MERGE Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java b/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java index 0e536ec..c3e10b5 100644 --- a/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java @@ -18,6 +18,7 @@ package org.mxchange.jphone.phonenumbers.cellphone; import java.util.Objects; import javax.persistence.Basic; +import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; @@ -57,7 +58,7 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable { * Country instance ('s dial data) */ @JoinColumn (name = "provider_country_id", nullable = false) - @OneToOne (targetEntity = CountryData.class, optional = false, fetch = FetchType.EAGER) + @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false, fetch = FetchType.EAGER) private Country providerCountry; @Override