Olá!
Estou aprendendo a utilizar o hibernate, porém não estou conseguindo fazer a minha aplicação rodar! Eu estou lendo um tutorial que diz para criar um arquivo hibernate.properties na pasta src fora de qualquer pacote. Eis o arquivo:
hibernate.dialect org.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost/jdevelop
hibernate.connection.username root
hibernate.connection.password
Só que quando vou executar o arquivo, eu recebo o seguinte:
Exception in thread "main" org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
at org.hibernate.dialect.Dialect.instantiateDialect(Dialect.java:232)
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:210)
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:225)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:86)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61)
at hibernate1.GeraTabelas.main(GeraTabelas.java:12)
Java Result: 1
O que eu poderia estar fazendo de errado?
