We're updating the issue view to help you get more done. 

invoke determineDialect instead of constructDialect when hibernate.dialect is blank

Description

I'd like to use spring EL to config dialect,when no placeholder 'hibernate.dialect' found,it will use an empty string as default value,I wish hibernate will determineDialect instead of trying load an empty class.

1 2 3 4 5 6 7 <property name="hibernateProperties"> <props> <prop key="hibernate.dialect"> ${hibernate.dialect:} </prop> </props> </property>

org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl

1 2 3 if ( dialectName != null && dialectName.trim().length() > 0 ) { return constructDialect( dialectName ); }

Environment

None

Status

Assignee

Brett Meyer

Reporter

Yanming Zhou

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.3.0.Beta4
4.2.5

Priority

Major