Markus Gritsch: I've sent a pull request for using composite ids in a query in Neo4j and MongoDB. If you want to try it: https://github.com/hibernate/hibernate-ogm/pull/548