[hibernate-issues] [Hibernate-JIRA] Created: (HSHARDS-53) Map association not supported

Oleg Ternovoi (JIRA) noreply at atlassian.com
Fri Mar 28 02:56:33 EDT 2008


Map association not supported
-----------------------------

                 Key: HSHARDS-53
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-53
             Project: Hibernate Shards
          Issue Type: Bug
          Components: engine
    Affects Versions: 3.0.0.Beta2
            Reporter: Oleg Ternovoi
            Assignee: Max Ross


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>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list