Estou tentando gera uma tabela atraves do hibernate só que não está… alguem sabe me dizer o que pode estar acontecendo…
package br.com.hibernate.produto;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class GeraTabelas {
public static void main(String[] args) {
AnnotationConfiguration cfg = new AnnotationConfiguration();
cfg.addAnnotatedClass(Produto1.class);
new SchemaExport(cfg).create(true, true);
}
}
Entity
@Table
public class Produto {
@Column(name = “descricao”, nullable = true, length = 50)
private String descricao;
@Id @GeneratedValue
private int id;
hibernate.dialect org.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost/test
hibernate.connection.username root
hibernate.connection.password