From b999c1e5b1607a50cd946229f1dc4321a06e054b Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Fri, 18 Jul 2014 12:07:30 -0400 Subject: [PATCH] remove hack comment --- .../keycloak/models/jpa/entities/AuthenticationLinkEntity.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/model/jpa/src/main/java/org/keycloak/models/jpa/entities/AuthenticationLinkEntity.java b/model/jpa/src/main/java/org/keycloak/models/jpa/entities/AuthenticationLinkEntity.java index 1eec3e4934..e21b4fc8f0 100755 --- a/model/jpa/src/main/java/org/keycloak/models/jpa/entities/AuthenticationLinkEntity.java +++ b/model/jpa/src/main/java/org/keycloak/models/jpa/entities/AuthenticationLinkEntity.java @@ -30,9 +30,6 @@ public class AuthenticationLinkEntity { @Column(name="AUTH_USER_ID") 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 @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name="USER_ID")