pom.xml
---------------
<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-entitymanager</artifactId>
     <version>4.3.1.Final</version>
</dependency>
<dependency>
     <groupId>org.hibernate.javax.persistence</groupId>
     <artifactId>hibernate-jpa-2.1-api</artifactId>
     <version>1.0.0.Final</version>
</dependency>

hibernate.cfg.xml
------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd[1]">

<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/imebaze?useSSL=false&amp;zeroDateTimeBehavior=CONVERT_TO_NULL</property>
        <property name="hibernate.connection.username">username</property>
        <property name="hibernate.connection.password">password</property>
    </session-factory>
</hibernate-configuration>

//ako pravi problem sa zonama u sql
SET @@global.time_zone='+00:00';
SET @@session.time_zone='+00:00';