Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23925

A StrictJpaComplianceViolation is thrown while performing a HQL Select clause

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes, Migration
    • Known Issue
    • Hide

      `from Person p` -> `select p from Person p`

      Show
      `from Person p` -> `select p from Person p`
    • Show
      1. Clone https://github.com/zhantemirov/hibernate-strict-violation-reproducer 2. Follow the instructions.

      A org.hibernate.query.sqm.StrictJpaComplianceViolation is thrown while trying to perform a HQL Select clause (e.g. `from Person p`) with the following message:

      org.hibernate.query.sqm.StrictJpaComplianceViolation: Encountered implicit select-clause, but strict JPQL compliance was requested
      

      When the `select p` part is added before the clause, the error is gone.
      Feel free to use the attached reproducer (GitHub repository).

      Opening this issue as the expected behavior has changed - I suppose because of a newer Hibernate version (but I can miss something as well)

            Unassigned Unassigned
            szhantem@redhat.com Sultan Zhantemirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: