]> git.mxchange.org Git - juser-core.git/commitdiff
Must use @JoinColumn (opps)
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 13:04:54 +0000 (14:04 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 13:04:54 +0000 (14:04 +0100)
src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java

index c947b4620f6008584f4d8cad1fe8dc49fe942fa1..0fa4ec271f2414884dfd95e6221b00b825bf9fb9 100644 (file)
@@ -27,6 +27,7 @@ import javax.persistence.Enumerated;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
+import javax.persistence.JoinColumn;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
@@ -91,7 +92,7 @@ public class EmailAddressChange implements ChangeableEmailAddress {
        /**
         * User initiating the email change
         */
-       @Column (name = "email_change_user_id", length = 20, nullable = false, updatable = false)
+       @JoinColumn (name = "email_change_user_id", nullable = false, updatable = false)
        @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH, optional = false)
        private User emailChangeUser;