Merge pull request #542 from patriot1burke/master

remove hack comment
This commit is contained in:
Bill Burke 2014-07-18 12:07:51 -04:00
commit d2b42e3843

View file

@ -30,9 +30,6 @@ public class AuthenticationLinkEntity {
@Column(name="AUTH_USER_ID") @Column(name="AUTH_USER_ID")
protected String authUserId; protected String authUserId;
// NOTE: @OnetoOne creates a constraint race condition if the join column is on AuthenticationLinkEntity.
// The race is that user gets loaded concurrently, creates link concurrently, and sets it. Therefore, we have
// a @ManyToOne on both sides. Broken yes, but, I think we're going to replace AuthenticationLinkEntity anyways.
@Id @Id
@ManyToOne(fetch = FetchType.LAZY) @ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name="USER_ID") @JoinColumn(name="USER_ID")