Hibernate List<Enum> mapping
Posted
by
Ranna
on Stack Overflow
See other posts from Stack Overflow
or by Ranna
Published on 2012-04-02T04:51:25Z
Indexed on
2012/04/02
5:30 UTC
Read the original article
Hit count: 191
Filed under:
I have a bean property Map<Long,List<TransactionFlowEnum>> accessRights
. Please help me out to map it in hbm file. I have tried by following but it is not working out.
<map name="accessRights" cascade="refresh" table="privilege_access_right_map">
<key column="privilege_id"/>
<map-key column="document_type_id" type ="long"/>
<many-to-many class="com.v4common.shared.beans.usermanagement.TransactionFlowEnum" column="access_right_id" />
</map>
Thanks In Advance.
© Stack Overflow or respective owner