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: Error when trying to execute update with subselect with join
PostPosted: Wed Nov 14, 2007 3:42 pm 
Newbie

Joined: Wed Nov 14, 2007 3:14 pm
Posts: 1
Good afternoon, excuse my English...

When I try to execute an update that has a subselect with joins, the hibernate throws a mistake NullPointerException in the method
Code:
HqlSqlWalker.createFromJoinElement () 

exactly in this space:
Code:
FromElement fromElement = dot.getImpliedJoin (); 
fromElement.setAllPropertyFetch(propertyFetch!=null); 

fromElement is null
this is the hql:
Code:
UPDATE    Test AS t
SET       t.situation = ?
WHERE      t.id IN (
      SELECT    te.id
      FROM        test AS te
       JOIN    te.tests AS tes // one test have many tests for sample...
   )

In case, don't make the join with tests, it works.
before migrating for the version 3.2.5 it worked, but with the new version it doesn't work more. the previous version was 3.0.5

do you know why this error is happening?

Respectfully

Hector


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.