select entitywith0_.id1 as id1_0_, entitywith0_.id2 as id2_0_, entitywith0_.description as descript3_0_ from EntityWithCompositeId entitywith0_ where (exists (select 1 from EntityWithCompositeId entitywith1_)) and (entitywith0_.id1, entitywith0_.id2)=(?, ?)