]
Steve Ebersole updated HHH-3450:
--------------------------------
Fix Version/s: (was: 3.3.1)
3.3.x
Include SingletonEhCacheProvider as an additional caching provider
(Greg Luck)
------------------------------------------------------------------------------
Key: HHH-3450
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3450
Project: Hibernate Core
Issue Type: Patch
Components: caching (L2)
Affects Versions: 3.3.0.GA
Environment: Any
Reporter: Greg Luck
Assignee: Steve Ebersole
Fix For: 3.3.x, 3.4
Attachments: SingletonEhCacheProvider.java
Original Estimate: 1 hour
Remaining Estimate: 1 hour
The SingletonEhCacheProvider complements the existing EhCacheProvider in that it is a
singleton. This matches the way the provider used to work in older versions of
Hibernate/Ehcache.
It is preferable to use the SingletonEhCacheProvider unless a user is running multiple
versions of Hibernate (a use case we had at wotif) or multiple instances of
SessionFactory. This provider is distributed with Ehcache but not with Hibernate. It would
be preferable it we added it to Hibernate and it is frequently overlooked by users. This
code is in production use on many systems, including those of the author.
The attached class is the one from the Ehcache project. It will need some minor tweaking
to match the conventions of Hibernate project.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: