Hello, I have a query like this:
Code:
select e from MyEntity e where :otherEntity not in e.myCollection
But I cannot get it work. It throws an SQL syntax error.
Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1:
Here is the SQL as is shown by Hibernate:
Code:
select
myEntity0_.id as id12_,
myEntity0_.nombre as nombre12_,
from
MyEntity myEntity0_,
MyEntity_MyEntity myColl1_,
MyEntity myEntity2_
where
myEntity0_.id= myColl1_.e1_id
and myColl1_.e2_id=myEntity2_.id
and (
? not in (
.
)
)
could anyone help me?
Regards,
Chiara