Hello,
I have problem with collection mapping in Hibernate 3.3.1.GA.
I have two database tables: user(id:number, username:varchar2, pass:varchar2) and userpermission(user_id:number, permission:varchar2).
In my application I have entity User with property Set<String> permissions;
It is mapped with
<set name="permissions" table="USERPERMISSION" lazy="false" fetch="join" inverse="false" cascade="all">
<key column="USER_ID" not-null="true"/>
<element column="PERMISSION" type="string" length="40"
not-null="true"/>
</set>
The set of permissions is always empty although it shouldn't. But hibernate user type's nullSafeGet is called and the resultset contains correct data, but the PersistentSet doesn't.
CAn you advice me?
Thanks
blaf
_________________ thanks
blaf
|