Re: [hibernate-dev] [OGM] MongoDB JPQL Query: comparison with object fails

2013-10-20 Thread Guillaume SCHEIBEL
Hi, OGM-356 created. What is missing to make it work ? Guillaume 2013/10/20 Gunnar Morling > 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 its

Re: [hibernate-dev] [OGM] MongoDB JPQL Query: comparison with object fails

2013-10-20 Thread Gunnar Morling
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 op

Re: [hibernate-dev] [OGM] JPQL support

2013-10-20 Thread Gunnar Morling
Hi Guillaume, As you say JPQL support is basically not yet implemented in OgmEntityManager. There is already some code in this class which obtains an OgmSession for a given OEM (getDelegate(), buildOgmSession()). So I think one could implement createQuery() either by delegating to OgmSession#crea

[hibernate-dev] [OGM] MongoDB JPQL Query: comparison with object fails

2013-10-20 Thread Guillaume SCHEIBEL
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 refe