Prevent unnecessary calls to JDBC metadata methods.

Description

At start-up Hibernate logs the JDBC and Database versions at the debug level. In some JDBC Drivers calling these methods will make round trip calls to the database to get the information. If debugging is disabled this calls are unnecessary.

I will be creating a pull request for this change.

Environment

N/A

Status

Assignee

Hardy Ferentschik

Reporter

Justin Rosenberg

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.0.0.Alpha2

Priority

Trivial