From: Roland Häder Date: Mon, 26 Jun 2017 19:47:21 +0000 (+0200) Subject: Opps, targetEntity must be a class, not interface ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77b466616def2b38733f1ce60928422813ef0c09;p=jphone-core.git Opps, targetEntity must be a class, not interface ... Signed-off-by: Roland Häder --- 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; /**