for (int i=0; i < rs.size(); i++)
assertTrue(rs.get(i) instanceof EnglishParagraph);
query = "select distinct tr from Translatable tr join tr.translations t where " +
"TYPE(tr) = EnglishParagraph or TYPE(tr) = FrenchParagraph";
rs = em.createQuery(query).getResultList();
assertEquals(2, rs.size());
for (int i=0; i < rs.size(); i++)
assertTrue(!(rs.get(i) instanceof GermanParagraph));
query = "select distinct tr from Translatable tr join tr.translations t where " +