org.hibernate.hql.internal.ast.QuerySyntaxException: country is not mapped [from country]

Stack Overflow | Rednaxel | 4 years ago
  1. 0

    org.hibernate.hql.internal.ast.QuerySyntaxException: table is not mapped [from table]

    Stack Overflow | 4 years ago | Rednaxel
    org.hibernate.hql.internal.ast.QuerySyntaxException: country is not mapped [from country]
  2. 0

    hibernate class is not mapped

    Stack Overflow | 4 years ago | Султан Абубакиров
    org.hibernate.hql.internal.ast.QuerySyntaxException: drivers is not mapped [select d from drivers d , busses b where d.id = b.id and b.id =: busid] Bus # 10
  3. 0

    QuerySyntaxException - Account is not mapped.

    GitHub | 4 years ago | philipwhiuk
    org.hibernate.hql.internal.ast.QuerySyntaxException: Account is not mapped [SELECT a FROM Account a WHERE a.username = :username]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1

    Stack Overflow | 1 year ago | Crazy Coder
    org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1, column 8 [SELECT * FROM com.rhcloud.giveme.entity.User u WHERE u.email = :email]

  1. MoYapro 1 times, last 2 weeks ago
  2. MoYapro 1 times, last 2 months ago
  3. marcbouvierdav 1 times, last 2 months ago
  4. tfr 1 times, last 4 months ago
  5. davidvanlaatum 1 times, last 5 months ago
30 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.hql.internal.ast.QuerySyntaxException

    country is not mapped [from country]

    at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister()
  2. Hibernate
    SessionImpl.createQuery
    1. org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
    2. org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110)
    3. org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:93)
    4. org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:324)
    5. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3291)
    6. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3180)
    7. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:706)
    8. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:562)
    9. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:299)
    10. org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:247)
    11. org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:248)
    12. org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)
    13. org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
    14. org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:105)
    15. org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
    16. org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:168)
    17. org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:221)
    18. org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:199)
    19. org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1735)
    19 frames
  3. org.hibernate.tutorial
    Test.main
    1. org.hibernate.tutorial.hbm.Test.main(Test.java:37)
    1 frame