Hibernate version: 3rc1
Mapping documents:
<class name="Issue" table="issue" discriminator-value="I">
...
<set name="inserts" cascade="none">
<key column="parent_issue"/>
<one-to-many class="com.pga.matrix.issue.InsertIssue"/>
</set>
<subclass name="InsertIssue" discriminator-value="N">
<many-to-one name="parentIssue" class="com.pga.matrix.issue.Issue" column="parent_issue"/>
<property name="inlinePageNumber" type="boolean" column="inlinePageNumber" />
</subclass>
</class>
I recently upgraded my web application from Hibernate 2 to 3. Before the upgrade, things were working fine. Now I am running into some problems. I've read over the migration guide but couldn't find an answer.
I have a test case that runs some code that calls Issue.getInserts(). It works correctly and loads the contents of the inserts collection. When I try to run the same piece of code through my web app (tested on both Tomcat and Jetty), Issue.getInserts() gives me a null value.
My webapp is based on Webwork using a Hibernate interceptor, but my test case uses the same Hibernate factory/session classes as the webapp.
Any ideas on why the collection would not load through my webapp but work in my test case?
|