-->
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: hibernate.dialect_resolvers - hibernate 4.3.10
PostPosted: Tue Jul 21, 2015 5:12 am 
Newbie

Joined: Tue Sep 15, 2009 3:36 am
Posts: 7
Location: London
Good Morning,

How do you implement your own DialectResolver and get it picked up? Setting the hibernate property with hibernate.dialect_resolvers and a custom class that extends DialectResolver (or StandardDialectResolver) doesn't seem to do anything.

If I don't explicitly set a hibernate.dialect I can see that StandardDialectResolver gets called.

The documentation (Section "27.3. Dialect resolution")

Quote:
see the DIALECT_RESOLVERS constant on org.hibernate.cfg.Environment


But this constant doesn't exist in 4.3?

I can get around this issue by overriding hibernate4.LocalSessionFactoryBean setDataSource and working out the dialect myself and programatically setting the hibernate.dialect as required (we have ourr own Dialects with registered functions) but it seems a bit hacky so would prefer to do it with a DialectResolver. If only I could work out how!

Any ideas?

Cheers

Mat


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.