Bugs item #682739, was opened at 2003-02-08 15:46 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=682739&group_id=40712
Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Benoit Menendez (bmenendez) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with SortedSet Initial Comment: I have the following mapping: <class name="kms.User" table="KMS_USER" proxy="kms.User"> .. <set role="proficiencies" table="KMS_USER_SKILL" lazy="true" sort="natural"> <jcs-cache usage="read-write"/> <key column="USER_ID"/> <composite-element class="kms.Proficiency"> <many-to-one name="skill" column="SKILL_ID" outer- join="false" not-null="true"/> <property name="value" column="PROFICIENCY" not- null="true"/> </composite-element> </set> </class> It appears the sort="..." attribute is not supported with composite elements (I thought it would and made my composite class Comparable)... I get a ClassCastException because when Hibernate disassembles, it adds Object[] in the TreeSet... ---------------------------------------------------------------------- >Comment By: Gavin King (oneovthafew) Date: 2003-02-09 17:35 Message: Logged In: YES user_id=384580 Thanks. This problem is fixed in Hibernate2 sourcetree, along with some other similar cases. It would be possible to apply the same fix against Hibernate 1.2 but I don't quite have time now.... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=682739&group_id=40712 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel