Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. QueryTranslatorImpl.compile() has thrown a QuerySyntaxException
    Hibernate Core
    1
    0
    0
  2. HQL syntax error - bad table name
    Hibernate Core
    25
    3
    3

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.hibernate.hql.ast.QuerySyntaxException: postaladdress is not mapped. \[delete from postaladdress where street='TESTSTRASSE' and city='TESTCITY' \]
    at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:157)
    at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)
    at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
    at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:265)
33 frames hidden

Solution

poroszd2 months ago

When referring to a table in HQL, use the java class name, not the sql table name.

External results for this pattern (10)

  1. Unknown authorvia viralpatel.net5 months ago
    contacts is not mapped [from contacts]
    Show stack trace
  2. sebbalexvia Stack Overflow5 months ago
    impianti is not mapped [from impianti where impianto='SD' order by modulo asc]
    Show stack trace
  3. Unknown authorvia nabble.com5 months ago
    Employeeinfo is not mapped [from Employeeinfo]
    Show stack trace
  4. atvodonelvia openxava5 months ago
    Llamada is not mapped [SELECT COUNT(*) from Llamada e WHERE e.linea.lineaId = :p0]
    Show stack trace
  5. Unknown authorvia jamacedo.com5 months ago
    emitente is not mapped [from emitente]
    Show stack trace
  6. Gerard Krupavia Hibernate JIRA5 months ago
    BKG_BKCMR_REL_AUD is not mapped [select new list(ee, e) from BKG_BKCMR_REL_AUD ee, *package-name-omitted*.BookingComponent_AUD e where ee.originalId.BookingComponent_id = e.originalId.id and ee.originalId.children_id = :children_id and e.originalId.rev_id.id <= :revision and ee.originalId.rev_id.id <= :revision and ee.rev_type != :delrevisiontype and e.rev_type != :delrevisiontype and (e.REV_ID_END.id > :revision or e.REV_ID_END is null) and (ee.REV_ID_END.id > :revision or ee.REV_ID_END is null)]
    Show stack trace
  7. erickvvia runawfe5 months ago
    org.jbpm.graph.exe.StartedSubprocesses is not mapped
    Show stack trace
  8. Unknown authorvia blogspot.com5 months ago
    hud_coc_report_question_7 is not mapped [from hud_coc_report_question_7]
    Show stack trace
  9. Unknown authorvia netbeans.org5 months ago