org.hibernate.hql.internal.ast.QuerySyntaxException

Customer is not mapped [DELETE FROM Customer c WHERE c.customerKey = :customerKey]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web205

  • via Spring JIRA by David J. M. Karlsen, 9 months ago
    Customer is not mapped [DELETE FROM Customer c WHERE c.customerKey = :customerKey]
  • via Spring JIRA by David J. M. Karlsen, 1 year ago
    Customer is not mapped [DELETE FROM Customer c WHERE c.customerKey = :customerKey]
  • via Stack Overflow by user2931656
    , 1 year ago
    customer is not mapped [UPDATE customer c SET c.firstName = :firstName WHERE c.id = :id]
  • Stack trace

    • org.hibernate.hql.internal.ast.QuerySyntaxException: Customer is not mapped [DELETE FROM Customer c WHERE c.customerKey = :customerKey] at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)[hibernate-core-4.2.3.Final.jar:4.2.3.Final] at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110)[hibernate-core-4.2.3.Final.jar:4.2.3.Final] at org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:93)[hibernate-core-4.2.3.Final.jar:4.2.3.Final] at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:324)[hibernate-core-4.2.3.Final.jar:4.2.3.Final] at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3420)[hibernate-cHowever I see the classes are found:2013-08-12 13:45:39,957 [main]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 8 months ago
    Unknown user
    Once, 10 months ago
    7 times, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    11 more bugmates