-->
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: Weirdness with Query
PostPosted: Thu May 20, 2004 12:39 pm 
Newbie

Joined: Thu May 20, 2004 11:43 am
Posts: 1
I'm using hibernate 2.0.3, mysql 4.0.15 on a linux box, driver version 3.0.11.

I have the following test case failing:
Code:
Session session = ...
Integer id = ....
List list1 = session.find("from User u where u.id = ?", id, Hibernate.INTEGER);
List list2 = session.find("from User u where u.id = ?", id, Hibernate.SERIALIZABLE);
assertTrue(list1.size(), list2.size());


I supose it should pass. Hibernate generates the same query twice but only with Hibernate.INTEGER it actually returns any object, no exceptions are thrown or any other sign of problem.

An I not supposed to use Hibernate.SERIALIZABLE or this is a bug somewhere?


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.