keycloak-aplcache

remove hack comment

7/18/2014 1:07:30 PM

Details

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 1eec3e4..e21b4fc 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")