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;
/**
* 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;