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