-->
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.  [ 5 posts ] 
Author Message
 Post subject: New version doesn't work properly with qbc...
PostPosted: Fri Oct 21, 2005 10:17 am 
Newbie

Joined: Mon May 23, 2005 5:42 pm
Posts: 7
Hi!

I've just updated from H3beta1 to H3rc2, and H-annotation 3.1beta4 to beta6 and my project stoped to work!
There is problem with criteria query - even simples possible query doesn't work and I've got nullPointerException. It looks like no query is generated (when I set "show_sql" I've got message in log file like: Hibernate: null).

Example code:
Code:
session.createCriteria(Pooh.class).list();


Any ideas?

Reg.
L.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 10:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
let me guess: you have an interceptor

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: hmm...
PostPosted: Fri Oct 21, 2005 1:52 pm 
Newbie

Joined: Mon May 23, 2005 5:42 pm
Posts: 7
Yes...
Am I doing smth. wrong? Is Interceptor something bad?
Could you give me some hint - where should I look for something?

L.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 2:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you updated to a new version of hibernate 3 correct ?

And you added methods to your own Interceptor - did you just add them without reading the javadocs to see what they actually should return ?

Or at a minimum looked/used EmptyInterceptor to see what a default interceptor should do ? :)

that should be enough hints ...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 4:11 pm 
Newbie

Joined: Mon May 23, 2005 5:42 pm
Posts: 7
I checked everything in changelogs and I didn't find anything about interceptors...
But you've got right. I've just added unimplemented methods... there is no excuse for me... Thx for hint :)

L.


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