I've got such mapping:
Code:
<bag
name="properties"
table="multilanguage_property"
lazy="false"
inverse="true"
cascade="all"
outer-join="true"
where="disc like 'fcat'"
>
<jcs-cache
usage="read-write"
/>
<key
column="ref_id"
/>
<one-to-many
class="com.mypackage.language.property.FeedbackCategoryProperty"
/>
</bag>
and when outer-join="true" , there's an error
Code:
13:12:47,145 ERROR AssertionFailure:22 - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
net.sf.hibernate.AssertionFailure: cannot access loading collection
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:196)
at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
at net.sf.hibernate.collection.Bag.size(Bag.java:232)
but when i set outer-join="false", then everything is OK.
Is it bug or my mistake?