-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Need documentation for org.hibernate.test package
PostPosted: Tue Oct 24, 2006 5:26 pm 
Newbie

Joined: Thu Oct 19, 2006 7:53 pm
Posts: 10
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 11:59 pm 
Senior
Senior

Joined: Tue Aug 23, 2005 8:52 am
Posts: 181
The Ant script bundled with the Hibernate distribution should help you with this.
There is a target called junitsingle that takes a testname which points to the class that you wanted to test, so something like
ant -Dtestname=org.hibernate.test.id.MultipleHiLoPerTableGeneratorTest junitsingle


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.