[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2876) Query that retreives collection fails from cache

sebastien kurz (JIRA) noreply at atlassian.com
Wed Oct 3 05:54:25 EDT 2007


Query that retreives collection fails from cache
------------------------------------------------

                 Key: HHH-2876
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2876
             Project: Hibernate3
          Issue Type: Bug
          Components: caching (L2)
    Affects Versions: 3.2.5
         Environment: Hibernate 3.2.5 / JPA / Hashmap cache / query cache on
            Reporter: sebastien kurz


A query like "select e.collec from MyObj e where e.id = 1" will retreive the collection linked to MyObj when Hib. request directly the database, but returns a Collection of null pointers when using the Query cache.
The content of the query cache is [timestamp, null, null, ...] instead of [timestamp, id1, id2, ...]

@Entity
public class MyObj {
  @Id private Integer id;
  @OneToMany List<MyObj2> collec;
...
}

@Entity
public class MyObj2 ....

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