Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HBI-6
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HBI-6
Summary: ClassCastException when using query.iterate() but works with query.list().iterator()
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate 1.2
Assignee:
Reporter: Noel Kee
Created: Sun, 22 Jun 2003 4:07 AM
Updated: Sun, 22 Jun 2003 4:07 AM
Environment: Mandrake Linux 9.1,
DB2 V7.2,
Sun's J2SDK 1.4.1_02,
Hibernate 1.2.4 (same situation with Hibernate 1.2.5)
Description:
A simple query, "from c in class itr.Product" throws a ClassCastException" when used with query.iterate(). If query.list().iterator() is used instead, it works fine.
The ClassCastException occured, when hibernate attempts to retrieve an associated class in the (itr.Pricing) in a bag and tries to cast the bag to a Long.
The complete set of java source, mapping and ddl is attached.
---------------------------------------------------------------------
JIRA INFORMATION:
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/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|