From ae5ffd68f4936746c44a594f43cceefafc588e30 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 29 Sep 2010 13:22:24 +0000 Subject: [PATCH] AnnotationSessionFactoryBean's "postProcessConfiguration" is non-final now (because of Hibernate 3.6; SPR-7581) git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3694 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../annotation/AnnotationSessionFactoryBean.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java b/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java index 975f34e0e05..a4649337ace 100644 --- a/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java +++ b/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java @@ -224,17 +224,21 @@ public class AnnotationSessionFactoryBean extends LocalSessionFactoryBean implem /** - * Delegates to {@link #postProcessAnnotationConfiguration}. + * This default implementation delegates to {@link #postProcessAnnotationConfiguration}. */ @Override - protected final void postProcessConfiguration(Configuration config) throws HibernateException { + protected void postProcessConfiguration(Configuration config) throws HibernateException { postProcessAnnotationConfiguration((AnnotationConfiguration) config); } /** - * To be implemented by subclasses that want to to perform custom + * To be implemented by subclasses which want to to perform custom * post-processing of the AnnotationConfiguration object after this * FactoryBean performed its default initialization. + *

Note: As of Hibernate 3.6, AnnotationConfiguration's features + * have been rolled into Configuration itself. Simply overriding + * {@link #postProcessConfiguration(org.hibernate.cfg.Configuration)} + * becomes an option as well then. * @param config the current AnnotationConfiguration object * @throws HibernateException in case of Hibernate initialization errors */