-->
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: DialectResolver using
PostPosted: Wed Oct 09, 2013 12:55 pm 
Newbie

Joined: Wed Oct 09, 2013 12:35 pm
Posts: 1
Hi,

I use Hibernate 3.6, with SQL Server 2018 and JDBC driver sqljdbc4-4.0.jar
I can not set hibernate.dialect property in the Persistence file because my application must be able to work with different database.
Hibernate does not detect the good dialect with SQL Server 2012.
With SQL Server 2012 Hibernate use org.hibernate.dialect.SQLServerDialect then Hiberbnate should use org.hibernate.dialect.SQLServer2008Dialect

To solve this problem I would use the hibernate.dialect_resolvers property.
But when I set this property like that :
Code:
<property name="hibernate.dialect_resolvers" value="com.my.application.core.impl.MyHibernateDialectResolerImpl"/>

The MyHibernateDialectResolerImpl is never built.

Does someone can help me to solve this problem ?

Thanks

The Pig in the space.


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.