[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2350?page=c...
]
Gail Badner updated HHH-2350:
-----------------------------
Affects Version/s: 3.5.0-CR-2
Summary: 2nd level cache broken for non-inverse bidirectional one-to-many
relation (was: 2nd level cache broken for inverse bidirectional one-to-many relation)
Burkhard, thanks for the test!
I've confirmed that this is still an issue in trunk.
I've added 2 unit tests based on Burkhard Graves test to org.hibernate.test.onetomany
in trunk that reproduce this issue:
RecursiveBidirectionalOneToManyCacheTest - w/o cache
RecursiveBidirectionalOneToManyNoCacheTest - w/ cache
2nd level cache broken for non-inverse bidirectional one-to-many
relation
-------------------------------------------------------------------------
Key: HHH-2350
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2350
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.2.1, 3.5.0-CR-2
Environment: Database: MySQL, HSQL, ... (seems not to be important)
Reporter: Burkhard Graves
Attachments: testcase-xml-mapping.tgz, testcase.tgz
When using "inverse" one-to-many relations as described in "2.4.6.2.3.
Bidirectional association with indexed collections"
(
http://www.hibernate.org/hib_docs/annotations/reference/en/html/entity.ht...)
hibernate is wrong when activating 2nd level cache.
See the attached example (unzip in /usr/local/hibernate-annotations-3.2.1.GA,
testname=org.hibernate.test.annotations.invonetomany.InverseOneToManyTest).
More details can be found here:
http://forum.hibernate.org/viewtopic.php?t=969456 (and
also in InverseOneToManyTest.java).
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira