-->
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: how to find out dialect?
PostPosted: Wed Mar 31, 2004 10:58 am 
Newbie

Joined: Wed Mar 31, 2004 5:12 am
Posts: 3
I need to be able to deploy my application on multiple platforms with varying database products. I'm using long text fields (over 4k), which means (I guess) that I must use different set of commands for fetching data when using Oracle compared to, say, MySQL. We are not living in a perfect world and I can l live with that - all I need is to find out the current db used and pick the correct method for perfoming the task on that db. However, I did find any documentation about how to do it. So my question is: how to find out what dialect is currently used? If that is not possible, then is there some other way to solve this issue?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 6:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Use the Configuration class and get the dialect property [getProperty(...)].


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.