-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem when working with different DBMS
PostPosted: Thu May 26, 2005 4:03 am 
Newbie

Joined: Sun May 22, 2005 2:51 am
Posts: 1
Location: Viet Nam
Hibernate version:2.1.6

I'm building a method where called the method session.find(String query) and the query string is:"select distinct year(report.date) from ReportFile as report". This method runs correctly in HSQL but when I run it in MySQL with the same hibernate mapping file, just change in the hibernate configuration file using MySQLAlect etc but it works incorrectly(the list returned is zero-size list although there are data in the database).
Do you have any idea?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 10:48 pm 
Regular
Regular

Joined: Tue May 24, 2005 10:19 am
Posts: 65
try see database sql. (put show sql in hibernate configuration)
this can help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.