Affects: Release Notes project_key: JBPAPP6 This could be a valid bug and should be fixed: https://hibernate.onjira.com/browse/HHH-7287 Copying conversation from my mail with the problem escalated on hibernate-dev-list The entitymapping information for Person is in file HibernateNativeAPINaturalId2LCachingTestCase.java in string testmapping. For convenience I have uploaded the test to my AS7 github as follows: https://github.com/madhumita12/jboss-as/blob/master/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/hibernate/naturalid/HibernateNativeAPINaturalId2LCachingTestCase.java Files you need to look at: HibernateNativeAPINaturalId2LCachingTestCase.java SFSB2LcacheNaturalId.java Person.java This testcase will fail in this branch as it uses hibernate 4.1.2 and in order to run it successfully you could just replace with 4.1.3 hibernate jars after building this branch. I have tried to put adequate comments to express my location of confusion. Guenther, I agree with your reasoning for steps 5 and step 7 as I am using Container Managed Transaction where isolation level (if it is not defined) picks up the default for the underlying Database which is inbuilt H2 for AS7 in this case and default isolation used for H2 is read-committed. However as I have already explained in my previous mail I am rather confused/concerned with the discrepancy in behaviour between step 5 and step 6 as step 6 returns me null when I use the same NaturalIdLoadAccess object to load the entity using previous values which looks inconsistent!
Labels: Added: eap6_need_triage
Affects: Added: Release Notes
Release Notes Text: Added: NaturalIdLoadAccess behaves inconsistently when trying to load entities from 2Lcache after an update of natural-id values from a non-transactional scenario. Hibernate does not support proper 2L caching of entity and natural ids in scenarios where there is a mix of transcational and non-transactional acess to the database.
Release Notes Text: Removed: NaturalIdLoadAccess behaves inconsistently when trying to load entities from 2Lcache after an update of natural-id values from a non-transactional scenario. Hibernate does not support proper 2L caching of entity and natural ids in scenarios where there is a mix of transcational and non-transactional acess to the database. Added: NaturalIdLoadAccess behaves inconsistently when trying to load entities from 2Lcache after an update of natural-id values from a non-transactional scenario. Hibernate currently does not support proper 2L caching of entity and natural ids in scenarios where there is a mix of transactional and non-transactional access to the database.
Release Notes Text: Removed: NaturalIdLoadAccess behaves inconsistently when trying to load entities from 2Lcache after an update of natural-id values from a non-transactional scenario. Hibernate currently does not support proper 2L caching of entity and natural ids in scenarios where there is a mix of transactional and non-transactional access to the database. Added: NaturalIdLoadAccess behaves inconsistently when trying to load entities from 2Lcache after an update of their natural-id values from a non-transactional scenario. Hibernate currently does not support proper 2L caching of entities with natural ids in scenarios where there is a mix of transactional and non-transactional access to the database.
Labels: Removed: eap6_need_triage Added: eap601candidate
Release Notes Text: Removed: NaturalIdLoadAccess behaves inconsistently when trying to load entities from 2Lcache after an update of their natural-id values from a non-transactional scenario. Hibernate currently does not support proper 2L caching of entities with natural ids in scenarios where there is a mix of transactional and non-transactional access to the database. Added: NaturalIdLoadAccess behaves inconsistently when trying to load entities from the 2L Cache after an update of their natural-id values from a non-transactional scenario. Hibernate currently does not support proper 2L caching of entities with natural ids in scenarios where there is a mix of transactional and non-transactional access to the database.
Release Notes Text: Removed: NaturalIdLoadAccess behaves inconsistently when trying to load entities from the 2L Cache after an update of their natural-id values from a non-transactional scenario. Hibernate currently does not support proper 2L caching of entities with natural ids in scenarios where there is a mix of transactional and non-transactional access to the database. Added: NaturalIdLoadAccess behaves inconsistently when trying to load entities from the Level Two(L2) Cache after an update of their natural-id values from a non-transactional scenario. Hibernate currently does not support proper L2 caching of entities with natural IDs in scenarios where there is a mix of transactional and non-transactional access to the database.
Release Notes Docs Status: Added: Documented as Known Issue Writer: Added: Darrin
Discussion still ongoing in HHH-7287.
Release Notes Docs Status: Removed: Documented as Known Issue Writer: Removed: Darrin Release Notes Text: Removed: NaturalIdLoadAccess behaves inconsistently when trying to load entities from the Level Two(L2) Cache after an update of their natural-id values from a non-transactional scenario. Hibernate currently does not support proper L2 caching of entities with natural IDs in scenarios where there is a mix of transactional and non-transactional access to the database. Docs QE Status: Removed: NEW
I reset the Release Notes Flag to "?" as the text needs further work before publication.