@NamedQuery(name=OAuth2AccessTokenEntity.QUERY_BY_TOKEN_VALUE,query="select a from OAuth2AccessTokenEntity a where a.jwt = :"+OAuth2AccessTokenEntity.PARAM_TOKEN_VALUE),
@NamedQuery(name=OAuth2AccessTokenEntity.QUERY_BY_APPROVED_SITE,query="select a from OAuth2AccessTokenEntity a where a.approvedSite = :"+OAuth2AccessTokenEntity.PARAM_APPROVED_SITE),
@NamedQuery(name=OAuth2AccessTokenEntity.QUERY_BY_RESOURCE_SET,query="select a from OAuth2AccessTokenEntity a join a.permissions p where p.resourceSet.id = :"+OAuth2AccessTokenEntity.PARAM_RESOURCE_SET_ID),
@NamedQuery(name=OAuth2AccessTokenEntity.QUERY_BY_SUB,query="select r from OAuth2AccessTokenEntity r where r.authenticationHolder.userAuth.name = :"+OAuth2AccessTokenEntity.PARAM_SUB)
@NamedQuery(name=OAuth2AccessTokenEntity.QUERY_BY_NAME,query="select r from OAuth2AccessTokenEntity r where r.authenticationHolder.userAuth.name = :"+OAuth2AccessTokenEntity.PARAM_NAME)
@NamedQuery(name=OAuth2RefreshTokenEntity.QUERY_EXPIRED_BY_DATE,query="select r from OAuth2RefreshTokenEntity r where r.expiration <= :"+OAuth2RefreshTokenEntity.PARAM_DATE),
@NamedQuery(name=OAuth2RefreshTokenEntity.QUERY_BY_CLIENT,query="select r from OAuth2RefreshTokenEntity r where r.client = :"+OAuth2RefreshTokenEntity.PARAM_CLIENT),
@NamedQuery(name=OAuth2RefreshTokenEntity.QUERY_BY_TOKEN_VALUE,query="select r from OAuth2RefreshTokenEntity r where r.jwt = :"+OAuth2RefreshTokenEntity.PARAM_TOKEN_VALUE),
@NamedQuery(name=OAuth2RefreshTokenEntity.QUERY_BY_SUB,query="select r from OAuth2RefreshTokenEntity r where r.authenticationHolder.userAuth.name = :"+OAuth2RefreshTokenEntity.PARAM_SUB)
@NamedQuery(name=OAuth2RefreshTokenEntity.QUERY_BY_NAME,query="select r from OAuth2RefreshTokenEntity r where r.authenticationHolder.userAuth.name = :"+OAuth2RefreshTokenEntity.PARAM_NAME)