what i want to do is to build an HQL Query which accepts a list of ids and returns a list of loaded objets. After a while, i found that something like this could work
from Foo foo where foo.ID in (:IdList)
However, this only works for single ids beacuse when i try to use it for composite ids the app throws the next exception:
System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I'm clueless...
I created a custom type for my id object hoping i could explain hibernate how to use it but it didnt work out.
So do you have any ideas?
thanks