Env: Eclipse 3.2.0, Hibernate 3.2
Is there a How To/Documentation for the org.hibernate.test package?
Running as a Java Application in Eclipse generates the error:
Exception in thread "main" org.hibernate.HibernateException: The dialect
was not set. Set the property hibernate.dialect.
Hibernate version: 3.2
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Returning DOM : <company id="123">description...<name>JBoss</name><account num="456"/></company>
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: The dialect was not set. Set the property hibernate.dialect.
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:649)
at org.hibernate.test.AllTests$FilterHandler.<init>(AllTests.java:377)
at org.hibernate.test.AllTests$FilterHandler.<init>(AllTests.java:374)
at org.hibernate.test.AllTests.filter(AllTests.java:355)
at org.hibernate.test.AllTests.access$0(AllTests.java:354)
at org.hibernate.test.AllTests$NewTests.suite(AllTests.java:295)
at org.hibernate.test.AllTests.suite(AllTests.java:147)
at org.hibernate.test.AllTests.main(AllTests.java:159)
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html