rg.hibernate.QueryException: Unmatched braces for alias path [select foo from bar where foo like '{%']

Hibernate JIRA | Michal Jastak | 10 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    Root Cause Analysis

    1. rg.hibernate.QueryException

      Unmatched braces for alias path [select foo from bar where foo like '{%']

      at org.hibernate.loader.custom.sql.SQLQueryParser.substituteBrackets()
    2. Hibernate
      SQLCustomQuery.<init>
      1. org.hibernate.loader.custom.sql.SQLQueryParser.substituteBrackets(SQLQueryParser.java:74)
      2. org.hibernate.loader.custom.sql.SQLQueryParser.process(SQLQueryParser.java:51)
      3. org.hibernate.loader.custom.sql.SQLCustomQuery.<init>(SQLCustomQuery.java:110)
      3 frames
    3. Hibernate
      SQLQueryImpl.list
      1. org.hibernate.engine.query.NativeSQLQueryPlan.<init>(NativeSQLQueryPlan.java:43)
      2. org.hibernate.engine.query.QueryPlanCache.getNativeSQLQueryPlan(QueryPlanCache.java:114)
      3. org.hibernate.impl.AbstractSessionImpl.getNativeSQLQueryPlan(AbstractSessionImpl.java:137)
      4. org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
      5. org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:152)
      5 frames