Hibernate version: 3.2.6
Exception: java.sql.SQLException: Closed Resultset: next
Db: Oracle 9
Java: jdk1.4.2
Hi
Im running a junit test and trying to refresh an object that has a number of collections. One of them is a PersistentSet with one element before refresh() is called, but is set to null after the refresh.
Have done some debugging and found that the Closed Resultset exception is thrown in Loader.doQuery() at this line:
Code:
for ( count = 0; count < maxRows && rs.next(); count++ ) {
A cut down version of the mapping file, with the relevant collection definition is...
Code:
<hibernate-mapping>
<class name="A" table="A">
.....
<set cascade="all-delete-orphan" inverse="true" name="bs">
<meta attribute="property-type">java.util.Collection</meta>
<key>
<column length="36" name="AId"/>
</key>
<one-to-many class="B"/>
</set>
</class>
</hibernate-mapping>
Is this a bug, or a quirk in what Im trying to do?
Cheers
Al.