From 77b466616def2b38733f1ce60928422813ef0c09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 26 Jun 2017 21:47:21 +0200 Subject: [PATCH] Opps, targetEntity must be a class, not interface ... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/org/mxchange/jphone/phonenumbers/mobile/MobileNumber.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/jphone/phonenumbers/mobile/MobileNumber.java b/src/org/mxchange/jphone/phonenumbers/mobile/MobileNumber.java index 36e9e2a..94162b3 100644 --- a/src/org/mxchange/jphone/phonenumbers/mobile/MobileNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/mobile/MobileNumber.java @@ -34,6 +34,7 @@ import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Transient; import org.mxchange.jcountry.data.Country; +import org.mxchange.jphone.phonenumbers.mobileprovider.CellphoneProvider; import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider; /** @@ -62,7 +63,7 @@ public class MobileNumber implements DialableMobileNumber { * Connection to table "mobile_provider" (for dial prefix and more data) */ @JoinColumn (name = "mobile_provider_id", nullable = false) - @OneToOne (targetEntity = MobileProvider.class, cascade = CascadeType.REFRESH, optional = false) + @OneToOne (targetEntity = CellphoneProvider.class, cascade = CascadeType.REFRESH, optional = false) private MobileProvider mobileProvider; /** -- 2.39.5