From f31a8a559d5f58dcdf835bd174770d1134453882 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 12 Mar 2016 14:04:54 +0100 Subject: [PATCH] Must use @JoinColumn (opps) --- .../jusercore/model/email_address/EmailAddressChange.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5