[hibernate-dev] hibernate.cache.default_cache_concurrency_strategy has no effect

Gail Badner gbadner at redhat.com
Wed Apr 29 18:19:23 EDT 2015


This mailing list is for discussing Hibernate development. Please open a JIRA issue at https://hibernate.atlassian.net/projects/HHH and attach your test.

Thanks,
Gail
----- Original Message -----
> From: "Mihalcea Vlad" <mih_vlad at yahoo.com>
> To: "Hibernate Dev" <hibernate-dev at lists.jboss.org>
> Sent: Wednesday, April 29, 2015 7:01:11 AM
> Subject: [hibernate-dev] hibernate.cache.default_cache_concurrency_strategy	has no effect
> 
> Hi,
> Setting the "hibernate.cache.default_cache_concurrency_strategy" property
> doesn't have any effect.
> This setting is inspected in
> AnnotationBinder.prepareDefaultCacheConcurrencyStrategy method, but
> thatmethod is never called.
> 
> Here's a test to replicate the issue:
> https://github.com/vladmihalcea/hibernate-master-class/blob/master/core/src/test/java/com/vladmihalcea/hibernate/masterclass/laboratory/cache/CollectionCacheTest.java
> The only workaround is to manually declare the caching strategy on each
> entity:
> @Entity(name = "repository")
> @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
> Vlad Mihalcea
> 
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
> 


More information about the hibernate-dev mailing list