]> git.mxchange.org Git - jphone-core.git/commitdiff
Opps, targetEntity must be a class, not interface ...
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 19:47:21 +0000 (21:47 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 19:47:21 +0000 (21:47 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jphone/phonenumbers/mobile/MobileNumber.java

index 36e9e2aadcdb742da152b82bc7ad53560f0c9e4a..94162b3a17a6cb90a74b6e7fcbfa8eab47e23349 100644 (file)
@@ -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;
 
        /**