-->
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.  [ 1 post ] 
Author Message
 Post subject: Accessing Hibernate Dialect from Spring HibernateDaoSupport
PostPosted: Sun Apr 16, 2006 1:57 pm 
Newbie

Joined: Sun Apr 16, 2006 1:23 pm
Posts: 1
Hi,

We are using both Spring and Hibernate in our development. I wanted to ask if it is logical to access the Hibernate Dialect object in our DAO class that extends org.springframework.orm.hibernate3.support.HibernateDaoSupport

Something like:
Code:
((SessionFactoryImpl)getSessionFactory()).getDialect();


The reason this was at all raised was since we need to create a Temporary Table (via org.springframework.jdbc.core.JdbcTemplate execute sql method) and we'll be needing to support both Oracle and MS SQL.

I though we could use methods from the Dialect object in order to create the SQL Statement accordingly. Something like the sqlTemporaryTableCreateString method in class org.hibernate.mapping.Table

Any input, comments, alternative suggestion pls.

Thank you in advance,


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.