class « HQL « JPA Q&A

1. HQL with fully qualified class name

Let's say I have entity Foo like -

// imports
public class Foo{
    private Long id;    

    // getters ...

2. Is there a way to use hql without classes?

The scenario is: in my system, the user will be able to define a query to a database using some kind of metadata. Example: the user will define some parameters such as:


3. org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class

I am getting following exception while running the hql query. My class is present in the application. org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class [DETablePojo] Now, DETablePojo is present in the appl which is simple class having getter and setter method. This class is not mapped to any table. public class DETablePojo { private String pocessId = ""; private String processname=""; public DETablePojo(String ...

4. how to use hql with typed class

5. HQL class operator

Hi, I have a parent class with three children. Each child represents a table. I would like to run a query against the parent with params that are common to two of the three children. Two of the children contain a phone number column, but the third does not. My HQL query looks something like: SELECT p from parent p WHERE ...

6. HQL and class extension

Newbie Joined: Thu Oct 14, 2010 3:01 am Posts: 3 Hi, I have an entity class, class B, that extends from a base entity class. The base entity class has two fields. There is a parent class, class A, which has a one-to-many relation with class B. My problem is that when i try to retrieve class B from class A, ...

7. HQL statement class

8. interfaces vs concrete classes in HQL

blog ...

9. HQL: ".class" implementation...

10. problem with .class operator in hql