Joined: Wed Dec 15, 2004 1:58 pm Posts: 16 Location: Prague, Czech Republic
|
I finded bug in Hibernate 3.1.3 version, that was not in 3.1.2.
Try HQL DML like this:
delete from IdfKlient vstp where exists(from Dotaz as dotaz where dotaz.davka=:davka and vstp.dotaz=dotaz)
Hibernate 3.1.2 transaltes as:
Hibernate: delete from idfklient where exists (select dotaz1_.id from dotaz dotaz1_ where iddavky=? and dotaz_id=id)
But in Hibernate 3.1.3:
Hibernate: delete from idfklient where exists (select dotaz1_.id from dotaz dotaz1_ where dotaz1_.iddavky=? and idfklient0_.dotaz_id=id)
And fails!
Do you have same problems? If so I will report in JIRA.
|
|