Handling Timestamp '0000-00-00 00:00:00' in jdbc

here i found quick ref to resolve SQLException when Timestamp value is '0000-00-00 00:00:00', link

Summary

In hibernate.cfg.xml:
<property name="hibernate.connection.zeroDateTimeBehavior">convertToNull</property>

In hibernate.properties:
hibernate.connection.zeroDateTimeBehavior=convertToNull

In mysql-ds.xml file for JBOSS:
<connection-property name="zeroDateTimeBehavior">convertToNull</connection-property>

In JDBC URL:
jdbc:mysql://yourserver:3306/yourdatabase?zeroDateTimeBehavior=convertToNull