-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem with MySQLDialect
PostPosted: Tue Dec 18, 2007 7:37 am 
Newbie

Joined: Mon Dec 10, 2007 6:29 am
Posts: 8
Hello!

I want to configure JBoss jbpm to works with mySQL. In the hibernate.cfg file I put the following:
Code:
<!-- hibernate dialect -->
    <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

    <!-- JDBC connection properties (begin) -->
    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpm</property>
    <property name="hibernate.connection.username">xxxx</property>
    <property name="hibernate.connection.password">xxxxx</property>
     <!-- JDBC connection properties (end) -->
     
         
    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
    <property name="hibernate.show_sql">true</property>
    <property name="hibernate.format_sql">true</property>
    <property name="hibernate.use_sql_comments">true</property>


But in the server log I can see that hibernate uses HSqlDialect, no MySQLDialect. Hibernate creates a new temporal file with HSqlDialect :( . I have look in all the hibernate.cfg files and these are correct. I have look in some jar files to see if they have hibernate.cfg files but I don't find any. Someone knows in what file it's the problem or how can I solucionate?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 3:04 am 
Newbie

Joined: Thu Dec 13, 2007 8:18 pm
Posts: 7
Do you have a hibernate.properties file as well that might be defining the HSQL dialect? Is it being set some where in your application?

Those are the only other ways I can think of that Hibernate could be getting alternate dialect information.

Thanks,
Dave


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 7:21 am 
Newbie

Joined: Mon Dec 10, 2007 6:29 am
Posts: 8
Hello dritter!

Thanks for your reply but I haven't got any hibernate.properties file in my aplication :( . Could you imagine where is the problem?


Thanks in advance,

Regards


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

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.