[hibernate-commits] [hibernate/hibernate-orm] 62a149: HHH-7318 Fix native queries incorrectly converting...

Yoann Rodière noreply at github.com
Thu Mar 19 13:09:52 EDT 2020


  Branch: refs/heads/wip/6.0
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: 62a14972bc522363f763bba71fc4738fea5a5127
      https://github.com/hibernate/hibernate-orm/commit/62a14972bc522363f763bba71fc4738fea5a5127
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M hibernate-core/src/test/java/org/hibernate/jpa/test/query/TupleNativeQueryTest.java
    M hibernate-core/src/test/java/org/hibernate/test/fileimport/MultiLineImportFileTest.java

  Log Message:
  -----------
  HHH-7318 Fix native queries incorrectly converting BIGINT results to BigInteger

Also fix existing tests with wrong expectations:

* TupleNativeQueryTest: there is no reason to expect a BigInteger in
results, since the ID of entity Users if of type Long.
* MultiLineImportFileTest: there is no reason to expect "COUNT(*)" to
return a BigInteger, since the SQL type of COUNT(*) is bigint, which
corresponds to Long in Java.


  Commit: 3f95c2eadbe36c56a4a8f3bc063f7c4333a12570
      https://github.com/hibernate/hibernate-orm/commit/3f95c2eadbe36c56a4a8f3bc063f7c4333a12570
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    A hibernate-core/src/test/java/org/hibernate/jpa/test/query/NativeQueryResultTypeAutoDiscoveryTest.java

  Log Message:
  -----------
  HHH-7318 Test auto-discovery of result types in native queries


Compare: https://github.com/hibernate/hibernate-orm/compare/646221858755...3f95c2eadbe3



More information about the hibernate-commits mailing list