From: Roland Haeder Date: Sat, 12 Mar 2016 13:04:54 +0000 (+0100) Subject: Must use @JoinColumn (opps) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f31a8a559d5f58dcdf835bd174770d1134453882;p=juser-login-core.git Must use @JoinColumn (opps) --- diff --git a/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java b/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java index c947b46..0fa4ec2 100644 --- a/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java +++ b/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java @@ -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;