[hibernate-commits] [hibernate/hibernate-ogm] 66b9cd: OGM-1024 Update mongodb NativeQueryParser to suppo...

GitHub noreply at github.com
Mon Feb 6 09:19:20 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-ogm
  Commit: 66b9cdd96d7058e76fa13640b44baf7f10235fbf
      https://github.com/hibernate/hibernate-ogm/commit/66b9cdd96d7058e76fa13640b44baf7f10235fbf
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/impl/MongoDBQueryDescriptor.java
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/nativequery/impl/MongoDBQueryDescriptorBuilder.java
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/nativequery/impl/NativeQueryParser.java

  Log Message:
  -----------
  OGM-1024 Update mongodb NativeQueryParser to support aggregate operations.

  This change will make it possible for users to execute query with aggregate.
  something like:

  db.Poem.aggregate([{ '$match': {'$or': [ {'author':'Oscar Wilde'}, {'name': 'Portia' }]}}, { '$sort' : { 'name' : -1 } }])

Native query Parser


  Commit: b55ec9a3030763c6c69e2af664509bb0c1c92c76
      https://github.com/hibernate/hibernate-ogm/commit/b55ec9a3030763c6c69e2af664509bb0c1c92c76
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
    M mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/MongoDBSessionCLIQueryTest.java
    M mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/parsing/nativequery/NativeQueryParserTest.java

  Log Message:
  -----------
  OGM-1024 Add tests for MongoDB native queries with aggregate


  Commit: 55045cba97fc44aa5dddfc2e9ae069eefde1c7dc
      https://github.com/hibernate/hibernate-ogm/commit/55045cba97fc44aa5dddfc2e9ae069eefde1c7dc
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
    M documentation/manual/src/main/asciidoc/en-US/modules/mongodb.asciidoc

  Log Message:
  -----------
  OGM-1024 Update documentation


  Commit: 930d502033e7d60938d68115f4d4bb1f7db953a2
      https://github.com/hibernate/hibernate-ogm/commit/930d502033e7d60938d68115f4d4bb1f7db953a2
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
    M mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/MongoDBSessionCLIQueryTest.java

  Log Message:
  -----------
  OGM-1024 Make sure session is closed in the tests


  Commit: 0cc5d48c32e8ae9d2d175e6cecaf6a9f60d6b188
      https://github.com/hibernate/hibernate-ogm/commit/0cc5d48c32e8ae9d2d175e6cecaf6a9f60d6b188
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
    M mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/MongoDBSessionCLIQueryTest.java
    M mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/OscarWildePoem.java

  Log Message:
  -----------
  OGM-1024 Additional test case for MongoDB

  The test uses match, unwind, group and sort in a similar way to the
  the one requested on the forum.


Compare: https://github.com/hibernate/hibernate-ogm/compare/3d08a2ab295c...0cc5d48c32e8


More information about the hibernate-commits mailing list