Issue Type: Bug Bug
Affects Versions: 1.0.0
Assignee: Unassigned
Attachments: cacheableXmlTestcase.zip
Created: 29/Jun/12 9:47 AM
Description:

When selective caching and second level cache is enabled through the JPA persistence.xml, entites that are defined in orm.xml with cacheable="true" attribute are not cached in the second level cache;

Persistence.xml

<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<property name="hibernate.cache.use_second_level_cache" value="true" />

orm.xml

<entity class="org.jboss.test.jpa.CacheableXmlTestCase.model.CustomerXml" cacheable="true"/>

An entity that is annotated with @Cacheable(true) does get cached in the 2lc

Testcase is attached and available at:

https://github.com/johnaoahra80/test_cases/tree/master/JPA/CacheableXmlTestCase

Environment: AS7.1.2, Hibernate 4.0.1
EAP6.0, Hibernate 4.1.3,
Project: Java Persistence API
Labels: hibernate jpa2
Priority: Major Major
Reporter: John O'Hara
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira