-->
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.  [ 4 posts ] 
Author Message
 Post subject: Testing new dialect for Hibernate
PostPosted: Tue Jan 04, 2005 12:48 pm 
Beginner
Beginner

Joined: Wed Nov 03, 2004 6:24 pm
Posts: 24
[b]Hibernate version:[/b]
2.1.6
[b]Mapping documents:[/b]
Not applicable
[b]Code between sessionFactory.openSession() and session.close():[/b]
Not applicable
[b]Full stack trace of any exception that occurs:[/b]
Not applicable
[b]Name and version of the database you are using:[/b]
Not applicable
[b]The generated SQL (show_sql=true):[/b]
Not applicable
[b]Debug level Hibernate log excerpt:[/b]
Not applicable

I'm involved in an effort to define a new dialect for a relational database. Thus far, I've only done minimal testing. Is there a collection or suite of acceptance tests (or conformance tests) that Hibernate provides that I can use to test with my dialect? At this point I only have a class that extends the Hibernate Dialect class. I have no changes to other Hibernate files.
If there is no formal acceptance test suite, would any one in the forum be willing to share what they did to test their dialect to ensure that it did not cause Hibernate to encounter an error or otherwise fail?
Also, could someone tell what the process is for getting a dialect accepted for inclusion in hibernate2.jar?
Thank you all in advance for any cooperation/help you can offer!
Karen Ploski


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 04, 2005 1:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try running the hibernate unit test suite with the dialect. If the tests pass, or at least a reasonable ammount of them (some tests only work with specific databases), submit it to our JIRA issue tracker, and it might get included in the official distribution.


Top
 Profile  
 
 Post subject: Hibernate Dialect Acceptance Testing
PostPosted: Tue Jan 04, 2005 1:52 pm 
Beginner
Beginner

Joined: Wed Nov 03, 2004 6:24 pm
Posts: 24
Michael,

Thank you for the quick response! Just to confirm:

(1) Is the unit test suite included in the Hibernate download bundle, in the folder named test?

(2) I used Windows Explorer to search the .java files in the test folder for the string "main". Approximately 16 .java files contain "main". Is there any documentation for the test suite? If not, how would you suggest I become familar with the test suite (example: start with the .java that contain "main"). I would like to run the tests under Eclipse...does it make sense to go about the job that way?

Thank you!
Karen Ploski


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 04, 2005 1:59 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
The tests are in JUnit format, read up on that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.