简体   繁体   English

如何将执行的HQL查询转换为SQL查询

[英]How to convert executed HQL Query to SQL Query

This is HQL query I am getting in Console. 这是我在控制台中遇到的HQL查询。 I am getting "org.springframework.security.authentication.BadCredentialsException" while Logging.I am usinng correct credentials while login. 我在登录时收到“ org.springframework.security.authentication.BadCredentialsException”。登录时我使用了正确的凭据。 I am new to HQL query language. 我是HQL查询语言的新手。 Need help thanks 需要帮助谢谢

--- HQL AST ---
     \-[QUERY] Node: 'query'
        +-[SELECT_FROM] Node: 'SELECT_FROM'
        |  +-[FROM] Node: 'from'
        |  |  \-[RANGE] Node: 'RANGE'
        |  |     +-[DOT] Node: '.'
        |  |     |  +-[DOT] Node: '.'
        |  |     |  |  +-[DOT] Node: '.'
        |  |     |  |  |  +-[DOT] Node: '.'
        |  |     |  |  |  |  +-[IDENT] Node: 'com'
        |  |     |  |  |  |  \-[IDENT] Node: 'mindfiresolutions'
        |  |     |  |  |  \-[IDENT] Node: 'springmaven'
        |  |     |  |  \-[IDENT] Node: 'models'
        |  |     |  \-[IDENT] Node: 'Employee'
        |  |     \-[ALIAS] Node: 'generatedAlias0'
        |  \-[SELECT] Node: 'select'
        |     \-[IDENT] Node: 'generatedAlias0'
        \-[WHERE] Node: 'where'
           \-[EQ] Node: '='
              +-[DOT] Node: '.'
              |  +-[IDENT] Node: 'generatedAlias0'
              |  \-[IDENT] Node: 'employeeUserName'
              \-[COLON] Node: ':'
                 \-[IDENT] Node: 'param0'

The problem is probably exactly what it sounds like, you're using the wrong credentials to connect. 问题可能恰恰是听起来很像,您使用了错误的凭据进行连接。 Without knowing more about your app (what kind or how you run it) it's hard to know for sure, but I recommend taking a look at your connection configuration to be sure everything is as it should be. 在不了解有关您的应用程序(类型或运行方式)的情况下,很难确切知道,但是我建议您查看一下您的连接配置,以确保一切都应该正确。

From api: BadCredentialsException is "Thrown if an authentication request is rejected because the credentials are invalid. For this exception to be thrown, it means the account is neither locked nor disabled." 来自api:BadCredentialsException为“如果由于凭据无效而拒绝身份验证请求,则抛出该异常。要抛出此异常,则意味着该帐户既未锁定也未禁用。”

https://docs.spring.io/spring-security/site/docs/current/apidocs/org/springframework/security/authentication/BadCredentialsException.html https://docs.spring.io/spring-security/site/docs/current/apidocs/org/springframework/security/authentication/BadCredentialsException.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM