File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
org.springframework.orm/src/main/java/org/springframework/orm/hibernate4 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,9 @@ public void afterPropertiesSet() {
152
152
config .getProperties ().put (Environment .CURRENT_SESSION_CONTEXT_CLASS , SpringSessionContext .class .getName ());
153
153
config .getProperties ().put (Environment .DATASOURCE , this .dataSource );
154
154
config .getProperties ().put ("hibernate.classLoader.application" , this .resourcePatternResolver .getClassLoader ());
155
- config .addProperties (this .hibernateProperties );
155
+ if (this .hibernateProperties != null ) {
156
+ config .addProperties (this .hibernateProperties );
157
+ }
156
158
scanPackages (config );
157
159
for (Class <?> annotatedClass : this .annotatedClasses ) {
158
160
ReflectionUtils .invokeMethod (addAnnotatedClassMethod , config , annotatedClass );
You can’t perform that action at this time.
0 commit comments