File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
openid-connect-common/src/main/java/org/mitre/oauth2/model Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 53
53
@ Entity
54
54
@ Table (name = "authentication_holder" )
55
55
@ NamedQueries ({
56
- @ NamedQuery (name = AuthenticationHolderEntity .QUERY_ALL , query = "select a from AuthenticationHolderEntity a" ),
57
- @ NamedQuery (name = AuthenticationHolderEntity .QUERY_GET_UNUSED , query = "SELECT a FROM AuthenticationHolderEntity a "
58
- + "LEFT JOIN OAuth2AccessTokenEntity t ON t.authenticationHolder.id = a.id "
59
- + "LEFT JOIN OAuth2RefreshTokenEntity r ON r.authenticationHolder.id = a.id "
60
- + "LEFT JOIN AuthorizationCodeEntity c ON c.authenticationHolder.id = a.id "
61
- + "WHERE t.authenticationHolder.id IS NULL AND r.authenticationHolder.id IS NULL AND c.authenticationHolder.id IS NULL" )
56
+ @ NamedQuery (name = AuthenticationHolderEntity .QUERY_ALL , query = "select a from AuthenticationHolderEntity a" ),
57
+ @ NamedQuery (name = AuthenticationHolderEntity .QUERY_GET_UNUSED , query = "select a from AuthenticationHolderEntity a where " +
58
+ "a.id not in (select t.authenticationHolder.id from OAuth2AccessTokenEntity t) and "
59
+ + "a.id not in (select r.authenticationHolder.id from OAuth2RefreshTokenEntity r) and "
60
+ + "a.id not in (select c.authenticationHolder.id from AuthorizationCodeEntity c)" )
62
61
})
63
62
public class AuthenticationHolderEntity implements Serializable {
64
63
private static final Logger logger = LoggerFactory .getLogger (AuthenticationHolderEntity .class );
You can’t perform that action at this time.
0 commit comments