[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2139) Iterating a joined-subclass query

Flavio Suguimoto (JIRA) noreply at atlassian.com
Tue Oct 10 08:32:25 EDT 2006


Iterating a joined-subclass query
---------------------------------

         Key: HHH-2139
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2139
     Project: Hibernate3
        Type: Bug

  Components: query-hql  
    Versions: 3.1.3    
 Environment: Hibernate 3.1.3, PostrgreSQL 8.0.3
    Reporter: Flavio Suguimoto
    Priority: Critical


In a joined-subclass structure when trying to use query.iterate(), to use cache and lazy, hibernate translate the query "from Activation activation where activation.class = Activation" to an mal-formed SQL query. The SQL query string that it creates is "select activation0_.id as col_0_0_ from activation activation0_ where case when activation0_1_.fk_id_activation is not null then 1 when activation0_.id is not null then 0 end=0".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list