[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3473) Collection loading is case sensitive with case insensitive db platform

Jozef Saniga (JIRA) noreply at atlassian.com
Wed Sep 10 06:19:04 EDT 2008


Collection loading is case sensitive with case insensitive db platform
----------------------------------------------------------------------

                 Key: HHH-3473
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3473
             Project: Hibernate3
          Issue Type: Bug
    Affects Versions: 3.2.4.sp1
         Environment: Hibernate 3.2.4.sp1, Hibernate Annotations 3.2.1.GA, MySQL 5.0.45
            Reporter: Jozef Saniga
         Attachments: lowercase.txt, mixedcase.txt

A fragment of my persistent POJO class:

   @Entity
   @Table(name = "USER_INFO")
   public class HibernateUserInfo
   {
      @EmbeddedId
      private HibernateUserIdImpl userId;
      @CollectionOfElements
      private List<Role> roles;
   }

My database contains only one HibernateUserInfo object and its userId is [username=sadmin, domain=LOCAL].

When I load the object using userId [username=sadmin, domain=LOCAL] roles gets populated correctly.
When I load the object using userid [username=SADmin, domain=LOCAL] roles is always empty.

The log traces from both cases are attached.

The traces show that when using the mixed case username 2 collections are built internally but only one of them gets used. org.hibernate.engine.loading.LoadContexts.locateLoadingCollectionEntry(org.hibernate.engine.CollectionKey) locates 2 different entries for sadmin and SADmin and that leads to the 2 collections.

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