-->
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: Dialect Autodetect: Best Practices
PostPosted: Fri Feb 12, 2010 1:27 pm 
Newbie

Joined: Mon Jun 05, 2006 11:44 am
Posts: 11
I am wondering what the best/recommended practice is for configuring the Hibernate dialect.

Should you configure the dialect directly yourself, or is it best to rely on DialectFactory.determineDialect?

I like the idea of having the dialect autodetected (allows you to use a single build against multiple different environments), but I'm wondering how reliable it is.


Top
 Profile  
 
 Post subject: Re: Dialect Autodetect: Best Practices
PostPosted: Fri Feb 12, 2010 2:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The dialect detection is the best mechanism IMO. Of course that means you must have a connection available. Usually that is the case obviously, though there are cases (tools mostly) where that is not true.


Top
 Profile  
 
 Post subject: Re: Dialect Autodetect: Best Practices
PostPosted: Fri Feb 12, 2010 2:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I should mention that you can register overrides and new mappings as well if you ever need to:
http://fisheye.jboss.org/browse/Hibernate/core/trunk/core/src/main/java/org/hibernate/dialect/resolver/DialectFactory.java?r=17805#l53


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.