It would also beneficial to have an overloaded version of createNativeQuery() on OgmSession which takes an actual query object instead of a string. That way one could e.g. pass in a DBObject in case of MongoDB.