A: 

Is your relationship bidirectional, i.e., does EntityType have an Entity property? If so, you can probably do something like entity.Name from EntityType where name = ?

Hank Gay
+1  A: 

HQL:

select entity from Entity entity where :type = some elements(entity.types)

I think that you can also write it like:

select entity from Entity entity where :type in(entity.types)

Kind Regards

marcospereira