I have a similar problem.
I have a class
Code:
A
with an embedded class
Code:
B
which have some properties that is common for that type of class.
When I use this embedded class as a part of a restriction in a criteria search (ex:
Code:
org.hibernate.criterion.Restriction.in("b", Set<B>)
) I get an SqlException for an Illegal SQL. It seems that Hibernate is unable to generate a criteria for an embedded class when using
Code:
org.hibernate.criterion.Restriction.in
Is there another solution for this kind of problem.