OGM JPQL query with object comparison