hibernante.cfg.xml
<?xml version="1.0" encoding="UTF-8"?> org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/informatica?zeroDateTimeBehavior=convertToNull root 456654 update true true threadestou com problema estranho aqui ele não criar as tabela no banco de dados
classe gerar as tabelas
public class GerarTabelas {
public static void main(String[] args) {
HibernateUtil.getSessionFactory().openSession();
}
}
classe hibernate util
/*
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
*/
package controller.projeto.util;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.SessionFactory;
/**
-
Hibernate Utility class with a convenient method to get Session Factory
-
object.
-
@author Carlos Eduardo
*/
public class HibernateUtil {private static final SessionFactory sessionFactory;
static {
try {
// Create the SessionFactory from standard (hibernate.cfg.xml)
// config file.
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Log the exception.
System.err.println(“Initial SessionFactory creation failed.” + ex);
throw new ExceptionInInitializerError(ex);
}
}public static SessionFactory getSessionFactory() {
return sessionFactory;
}
}
alguém pode me ajuda com esse erro