Olá pessoal…
Estou tentando usar o Hibernate com annotations e esta acontecento o seguinte erro:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Exception in thread “main” org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:397)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1885)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1178)
at sistema.TesteDeConfiguracao.main(TesteDeConfiguracao.java:15)
estou usando o eclipse 3.1.2, MySQL 5.0 e mysql-connector-java-3.1.12, hibernate-annotations-3.1beta9 e Hibernate 3.2
adicionei todos os jars do hibernate, do hibernate-annotation e do MySQL-connector…
o arquivo hibernate.properties que estava no src do hibernate-annotation que copie para o src da minha aplicacao…
hibernate.dialect org.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost/teste
hibernate.connection.username root
hibernate.connection.password masterkey
alguem pode me ajudar?
vcs conhecem um tutorial introdutorio do hibernate com annotations?