-->
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: proxy handle is no longer valid
PostPosted: Tue Jul 17, 2012 6:57 am 
Newbie

Joined: Fri Feb 24, 2012 3:11 am
Posts: 3
I have some named queries :

cable.list
cable.list.building

cable has a child object "coordinate". In order to handle for coordinate to insert/update/select to/from database , I have used sqlInsert, sqlUpdate and loader,(NamedNativeSqlQuery).

Cable
coordinate (Loader, sqlinsert, sqlupdate,)
building (jpa annotations, lazy loading)

when I try to call local.findByNamedQuery(cable.list), everything works fine : ((But query is too slow. Because of this slowness I used detached criteria, and the performace improved.))

But when I try to call local.findByNamedQuery(cable.list.building), I get "proxy handle is no longer valid" exception.
Hibernate executes the first query in success, but when executing the second query to get coordinate (I see in the log file that the sql is the one which I written by NamedNativeSqlQuery with loader.), it fails and throws that exception.


Can anyone help me on this issue?
Thank you for your help in advance.


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.