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
2008-09-08 18:47:05
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 = ?
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