-->
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.  [ 3 posts ] 
Author Message
 Post subject: Custom SQL Dialect
PostPosted: Sat Oct 23, 2004 12:04 pm 
Regular
Regular

Joined: Tue Sep 28, 2004 5:18 pm
Posts: 55
Location: Switzerland
I'm writing an application using a FirstSQL database. Thus far everything has worked pretty well out-of-the-box, even though FirstSQL isn't listed as a supported DB. I'm simply using the DefaultDialect.

I've progressed to a point now where I'm considering the potential advantages/difficulties of writing a custom FirstSqlDialect.

Could someone explain to me whether this is feasible and how it might be done, or point me to resources/documentation for writing a Dialect?

I would like to shift from my current bottom-up approach to a middle-out approach, using the mapping to maintain both generated Java skeletons and the schema DDL. From what I understand from reading (and rereading) Hibernate-In-Action, I'll need a proper Dialect for hbm2ddl to work properly.

Many thanks for any help,
Thom


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 23, 2004 12:07 pm 
Regular
Regular

Joined: Tue Sep 28, 2004 5:18 pm
Posts: 55
Location: Switzerland
Should probably mention as well, that I'd be happy to share any Dialect work with the Hibernate project, for other users, should anyone else choose to use Hibernate w/ FirstSQL in the future. FirstSQL has informed me that we are the only clients experimenting with Hibernate that they know of, to date, but they are very interested in the outcome.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 23, 2004 12:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
If the DefaultDialect works - what is the problem then ?

The best source of how to write a custom dialect is to see on the ohter dialects how they have handled their "quirks".

If you want to find out which methods hbm2ddl uses go look at Configuration.generateSchemaCreationScript() and .generateSchemaDropScript().

_________________
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.  [ 3 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.