@Test
public void testQueryRelationshipWithInheritance() {
try {
ParentRelationshipEntity parent = new ParentRelationshipEntity();
ChildRelationshipEntity child = new ChildRelationshipEntity();
child.setParent(parent);
parent.setChildren(Collections.singletonList(child));
EntityTransaction tx = em.getTransaction();
tx.begin();
em.persist(parent);
tx.commit();