[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3450) Include SingletonEhCacheProvider as an additional caching provider (Greg Luck)

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Sep 9 08:36:04 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31112#action_31112 ] 

Steve Ebersole commented on HHH-3450:
-------------------------------------

Here is the header which would replace it:

/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
 * indicated by the @author tags or express copyright attribution
 * statements applied by the authors.  All third-party contributions are
 * distributed under license by Red Hat Middleware LLC.
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 *
 */


> Include SingletonEhCacheProvider as an additional caching provider (Greg Luck)
> ------------------------------------------------------------------------------
>
>                 Key: HHH-3450
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3450
>             Project: Hibernate3
>          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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list