[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4450) MapKey with key as entity not working

shay (JIRA) noreply at atlassian.com
Mon Sep 21 11:20:50 EDT 2009


MapKey with key as entity not working 
--------------------------------------

                 Key: HHH-4450
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4450
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.2
         Environment: hibernate annotations 3.4.0 ,  Hibernate-core 3.3.2 , Postgres 1.8.4
            Reporter: shay
            Priority: Blocker
         Attachments: testbug.zip

when using an entity as key ,  map is inaccessible(NullPointerException for items) . 


Its seems that  when HashCode is called on the Key , the properties in key have not been populated, which prevents the map from loading properly

Test case  attached

Thank you for your help 
Shay Matasaro



-- 
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