[hibernate-commits] [hibernate/hibernate-ogm] 9ea7e3: OGM-1530 Expect Number instead of Long from COUNT

GitHub noreply at github.com
Fri Nov 16 05:50:43 EST 2018


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-ogm
  Commit: 9ea7e3a171ed70d811c244d2566f7abcb66eab8c
      https://github.com/hibernate/hibernate-ogm/commit/9ea7e3a171ed70d811c244d2566f7abcb66eab8c
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2018-11-15 (Thu, 15 Nov 2018)

  Changed paths:
    M core/src/test/java/org/hibernate/ogm/backendtck/queries/AggregateOperationQueryTest.java

  Log Message:
  -----------
  OGM-1530 Expect Number instead of Long from COUNT

  MongoDB returns a different type of value if the query is executed using the `countDocuments`
  function of the driver or a native aggregation query. I don't think the return is defined
  by the JPA specification and it will probably change from datastore to datastore.

  I decided to cast to Number as it makes more sense for this issue and for testing
  multiple different dbs.


  Commit: 5b2efb6a7c609d3f00c6a9dcd912eb34a31b29ed
      https://github.com/hibernate/hibernate-ogm/commit/5b2efb6a7c609d3f00c6a9dcd912eb34a31b29ed
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2018-11-15 (Thu, 15 Nov 2018)

  Changed paths:
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java

  Log Message:
  -----------
  OGM-1530 Replace deprecated count function

  The latest driver suggests the use of `countDocuments` instead


  Commit: d0de01b9e2dfed3de3c99d5462f976139d05554f
      https://github.com/hibernate/hibernate-ogm/commit/d0de01b9e2dfed3de3c99d5462f976139d05554f
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java

  Log Message:
  -----------
  OGM-1530 Depreaction: Pass ReplaceOptions instead of UpdateOptions


  Commit: 53205ba078fae56baca0996b4b99680bf49f742d
      https://github.com/hibernate/hibernate-ogm/commit/53205ba078fae56baca0996b4b99680bf49f742d
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java

  Log Message:
  -----------
  OGM-1530 Suppress warnings for missing type in generic


  Commit: 103403c17b748206e65431b954e6042622d131d8
      https://github.com/hibernate/hibernate-ogm/commit/103403c17b748206e65431b954e6042622d131d8
  Author: Aleksandr Mylnikov <aleksandr_mylnikov at epam.com>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  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
    A mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/impl/AggregationRenderer.java
    R mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/impl/MongoDBPropertyPathConverter.java
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/impl/MongoDBQueryParsingResult.java
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/impl/MongoDBQueryRendererDelegate.java
    M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/nativequery/impl/MongoDBQueryDescriptorBuilder.java
    M mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/MongoDBQueryDescriptorSerializationTest.java

  Log Message:
  -----------
  OGM-1530 HQL aggregation operations


  Commit: a62ee2dd74d24894b519320fa18b68e7506c11f8
      https://github.com/hibernate/hibernate-ogm/commit/a62ee2dd74d24894b519320fa18b68e7506c11f8
  Author: Davide D'Alto <davide at hibernate.org>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
    M core/src/test/java/org/hibernate/ogm/backendtck/queries/AggregateOperationQueryTest.java
    M core/src/test/java/org/hibernate/ogm/backendtck/queries/Author.java

  Log Message:
  -----------
  OGM-1530 Add test cases for HQL aggregation


Compare: https://github.com/hibernate/hibernate-ogm/compare/48075066b4fb...a62ee2dd74d2
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the hibernate-commits mailing list