Thanks Steve.
I would generally resort to the sql, but keep shying away from using HQL as I am so unfamiliar with the syntax, and everything I seem to want to do seems to be tricky apart from the standard attribute search.
The example you gave :
Code:
if ( event.getAttendees().contains(user) ) {
What will the performance of that be like, as I could have 1000 event attendees?
I will try and implement the query you suggested as a sql-query for now.
Thanks for the step up. Always makes so much more sense with a real example on data you are familar with.
Thanks