-->
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: specifying Dialect at runtime
PostPosted: Fri Feb 06, 2009 1:56 pm 
Newbie

Joined: Fri Feb 06, 2009 1:47 pm
Posts: 1
Hi I need to specify dialect in persistence.xml at runtime, this is because if we don't have dialect in xml file hibernate will choke on SQLExpress, it does work with MySQL 4..5 and SQL 2000/2005. I tried to extend HibernatePersistence by specifying my custom provider in persistence.
Code:
<provider>com.test.hello.util.CustomHibernateProvider</provider>
but Ejb3Configuration only throws "Required a different provider:" exception.

Code:
if ( provider != null && ! provider.trim().startsWith( IMPLEMENTATION_NAME ) ) {
  312            log.info( "Required a different provider: " + provider );
  313            return null;
  314         }


Does anyone have any suggestions??
Thanks Greg


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.