SQL queries use column names while HQL queries use Class properties. You’re selecting artifact_id from Classification but the Classification class has no property named ‘artifact_id’. To fix it, use the class property in your HQL.
SELECT artifactId FROM Classification
More Related Contents:
- How do you do a limit query in JPQL or HQL?
- What is the difference between JOIN and JOIN FETCH when using JPA and Hibernate
- JPA and Hibernate – Criteria vs. JPQL or HQL
- Hibernate criteria: Joining table without a mapped association
- How can you call custom database functions with Hibernate?
- Found shared references to a collection org.hibernate.HibernateException
- Hibernate Named Query Order By parameter
- Hibernate HQL Query : How to set a Collection as a named parameter of a Query?
- How to escape reserved words in Hibernate’s HQL
- IN-clause in HQL or Java Persistence Query Language
- HQL Hibernate INNER JOIN
- HQL left join of un-related entities
- HQL – row identifier for pagination
- Is there a more efficient way of making pagination in Hibernate than executing select and count queries?
- How to write a like query in HQL
- HQL recursion, how do I do this?
- Inserting data in one table using HQL in Hibernate
- What are the possible values of the Hibernate hbm2ddl.auto configuration and what do they do
- Is it possible to use raw SQL within a Spring Repository
- What is the proper way to re-attach detached objects in Hibernate?
- How do we count rows using older versions of Hibernate (~2009)?
- No Dialect mapping for JDBC type: 1111
- Hibernate one-to-one: getId() without fetching entire object
- Jackson/Hibernate, meta get methods and serialization
- Spring Data JPA: Batch insert for nested entities
- Hibernate: Where do insertable = false, updatable = false belong in composite primary key constellations involving foreign keys?
- Adding jdbc driver to classpath
- Hibernate deleting orphans when updating collection
- Change Table Name of an Entity on runtime? [duplicate]
- Unable to get multiple Table entities through Stored procedure using hibernate