Map association not supported

Description

Beta 2 support only association extended from Collection.
If I have Map association then

Caused by: java.lang.ClassCastException: java.util.HashMap
at org.hibernate.shards.session.ShardedSessionImpl.getShardIdOfRelatedObject(ShardedSessionImpl.java:714)
at org.hibernate.shards.session.ShardedSessionImpl.selectShardIdForNewObject(ShardedSessionImpl.java:660)
at org.hibernate.shards.session.ShardedSessionImpl.save(ShardedSessionImpl.java:637)
at org.hibernate.shards.session.ShardedSessionImpl.save(ShardedSessionImpl.java:767)

<map name="selfParameters" cascade="all-delete-orphan" table="ConfSupplierParams">
<key>
<column name="supplierName" not-null="true" index="CSP_supplierName_FK"/>
</key>
<map-key type="string" column="name"/>
<composite-element class="com.ixtens.fenix.internal.server.persistence.config.ParameterValue">
<property name="value" length="4000" not-null="true"/>
<property name="type" length="1" not-null="true"/>
</composite-element>
</map>

Environment

None

Status

Assignee

Max Ross

Reporter

Oleg Ternovoi

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

3.0.0.Beta2

Priority

Major
Configure