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