From 49c0b9f178885122ca3461d41ec85ce48c44ec7f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 16 Oct 2015 13:14:06 +0200 Subject: [PATCH] =?utf8?q?added=20missing=20cascade=20type,=20at=20least?= =?utf8?q?=20MERGE=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../jphone/phonenumbers/cellphone/CellphoneNumber.java | 3 ++- src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java | 3 ++- .../mxchange/jphone/phonenumbers/landline/LandLineNumber.java | 3 ++- .../jphone/phonenumbers/smsprovider/CellphoneProvider.java | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.5