-->
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: I bet I have to create a new 'dialect', don't I...
PostPosted: Thu Feb 03, 2005 4:31 pm 
Newbie

Joined: Thu Feb 03, 2005 4:25 pm
Posts: 7
Hello, all:

I am attempting to ascertain whether or not I can use Hibernate to map my POJOs to an IDMS (mainframe) database. I have the JDBC driver for IDMS, but the SQL you use is a little bit different than ANSI (not by a lot, but enough!).

Will I have to write a new dialect class to do this? Or is there some other way?

Thanks for all of your sage advice...

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 6:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the dialect controls how sql gets generated - so yes, that is the way ,)

(but you got a big resource of inspiration in all the existing dialects)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 7:13 pm 
Newbie

Joined: Thu Feb 03, 2005 4:25 pm
Posts: 7
Thanks for the info! Okay, so now that I know I need to write a new dialect, I downloaded the source code for Hibernate 3. When I try to compile, I get the following error:

"HqlSqlWalker.java": package org.hibernate.hql.antlr does not exist at line 15, column 32

This happens often because it is in the import statements. When I look at the source, there is no 'org.hiberate.htl.antlr package'.

Did I not download everything?

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 7:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you didnt run the build which generates the ANTLR related classes.

_________________
Max
Don't forget to rate


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.