Hi, OGM-356 <https://hibernate.atlassian.net/browse/OGM-356> created.
What is missing to make it work ? Guillaume 2013/10/20 Gunnar Morling <gun...@hibernate.org> > Hi, > > Querying on references to other entities has not been taken into account > so far, i.e. comparisons work only for attributes of the entity itself. I > think for Mongo we also don't yet support querying on attributes of > embedded entities (it is supported by the Lucene parser backend). > > Could you open an issue in JIRA for this? > > Thanks, > > --Gunnar > > > > > > 2013/10/20 Guillaume SCHEIBEL <guillaume.schei...@gmail.com> > >> Hello, >> >> I found an problem with the MongoDBComparisonPredicate. When I try to make >> a jpql query with an object comparison [1] >> >> The value (here a SolutionType instance) is "directly" passed to the >> MongoDBComparisonPredicate which tries to use it as it is, in a DBObject >> query. >> >> The point is, the refering property is solutionType_id (which is correct) >> but instead of using the parameter id, it's using the complete object [2] >> The MongoDB drivers returns that it can't serialize the type passed in >> parameter.. >> >> There is something I don't get, why for basic CRUD operations do we use >> dehydrated object and for queries as well ? Object parameter (all >> paramater >> that are not String, or wrappers) would be easier to use. >> >> WDYT ? >> >> Guillaume >> >> [1] https://gist.github.com/gscheibel/7070143 >> [2] >> >> https://github.com/hibernate/hibernate-ogm/blob/master/mongodb/src/main/java/org/hibernate/ogm/dialect/mongodb/query/parsing/predicate/MongoDBComparisonPredicate.java?source=c#L52 >> _______________________________________________ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> > > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev