Hi all,
I have a custom Set implementation that wraps a standard set, but makes sure
that the inputs and outputs are of a specific class. This is causing me to
get:
java.lang.ClassCastException
at net.sf.hibernate.type.SetType.wrap(SetType.java:27)
at net.sf.hibernate.impl.SessionImpl.wrap(SessionImpl.java:2505)
at net.sf.hibernate.impl.SessionImpl.wrap(SessionImpl.java:2445)
Exceptions. I I change it from my RoleSet to just a regular Set, everything
works fine.
But I don't want to have a special setRoleSetHibernate(Set set) method when
I have I have already setRoleSet(RoleSet).
Is this where I have to write my own type?
Below is my an extract from my hbm file.
Thanks, Eric
<set name="permissions" lazy="true" table="ROLE_PERMISSION">
<key column="ROLE_ID"/>
<many-to-many
class="org.apache.fulcrum.security.model.simple.entity.SimplePermission"
column="PERMISSION_ID"/>
</set>
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel