From: <leg...@at...> - 2003-08-31 08:08:28
|
Message: The following issue has been closed. Resolver: Gavin King Date: Sun, 31 Aug 2003 3:07 AM Quote from the Hibernate API documentation: onLoad() may be used to initialize transient properties of the object from its persistent state. It may not be used to load dependent objects since the Session interface may not be invoked from inside this method. --------------------------------------------------------------------- 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: Closed Priority: Major Resolution: REJECTED Project: Hibernate 1.2 Assignee: Reporter: Noel Kee Created: Sun, 22 Jun 2003 4:07 AM Updated: Sun, 31 Aug 2003 3: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/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |