According to the hibernate-dev mailing discussion, we need to add a new hibernate.jdbc.log.warnings configuration property that controls whether we try to fetch JDBC statement warning. By default, this property will be false, and this way we can overcome the MySQL JDBC driver performance issue associated to getting database-generated wanings. |