Hibernate version: hibernate-tools 3.1.0.beta4
First off, I've been having all sorts of wonderful successes with this stuff. Hat's off. My idbag worked just fine, but it was creating java.util.Collections and I'm trying to change it to java.util.List. Does the collection-type attribute work? Or have I missed something? Is this even appropriate here? It seemed like it should be ok to me.
Code:
<idbag name="seeAlso" table="SeeAlso" cascade="all" collection-type="java.util.List">
<collection-id column="id" type="long">
<generator class="native" />
</collection-id>
<key column="topic_from" />
<many-to-many column="topic_to" class="Topic" fetch="join" />
</idbag>
This is the the error that I get.
Code:
Caused by: org.hibernate.MappingException: Custom type does not implement UserCollectionType: java.util.List
ditto if I try org.hibernate.type.ListType of course. Do I really need to do a user type here?