hql « Entity « JPA Q&A





1. Hibernate HQL with interfaces    stackoverflow.com

According to this section of the Hibernate documentation I should be able to query any java class in HQL http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html#queryhql-polymorphism Unfortunately when I run this query...

"from Transaction trans where trans.envelopeId=:envelopeId"
I get ...

2. is it ok to mix session.save and various HQL updates that depend on that entity saving first    stackoverflow.com

I've got a function with a session argument that does various HQL queries and HQL update statements in hibernate. They create sql that goes against alot of tables. All ...

3. HQL: Entity exists in any Entity's SubCollection of itself    stackoverflow.com

I have a fairly simple entity Structure:

class Widget
{
    @Id
    private int id;

    @ManyToMany
    @JoinTable
    @Fetch( FetchMode.SUBSELECT ...

4. HQL: entity/entities in set of entities    coderanch.com

I'm stuck on a HQL-query. These are the entities I have: Entity - Event Set performers Entity - Performer Set

10. Error when updating entity using HQL    forum.hibernate.org

Hibernate version: 3.1 Friends, We found that inactivating entities was a common routine across our application. So we decided to have a generic dao implementation that simply updates the active field of our entity table to false. We are using HQL for this as we only want to update the one "active" field rather than have all fields of the entity ...

11. HQL: left join with arbitrary Entity    forum.hibernate.org