Development of procedures for the use of hibernate when, some time there is no need to fill in the fields, but after the hibernate query time reported

"Java.sql.SQLException: Value'0000-00-00 'can not be represented as java.sql.Timestamp"

Error, this is because hibernate think this is not a valid time string.

And effective date format as "0001-01-01 00:00:00.0"

Therefore, we changed the jdbc connection

"Jdbc: mysql: / / localhost: 3306/test? UseUnicode = true & characterEncoding = UTF8 & zeroDateTimeBehavior = convertToNull"

Either

"Jdbc: mysql: / / localhost: 3306/test? UseUnicode = true & characterEncoding = UTF8 & zeroDateTimeBehavior = round 0001-01-01 00:00:00.0"

On the solution to this problem.