[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2139?page=c...
]
Flavio Suguimoto commented on HHH-2139:
---------------------------------------
The test case is:
Query query = session.createQuery("from Activation activation where
activation.class = Activation ");
List activation = IteratorUtils.toList(query.iterate());
All the files are attached to the issue. If you need more codes, please let me know...
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: Minor
Attachments: Activation.hbm.xml, Activation.java, ActivationSMS.java
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira