[hibernate-commits] [hibernate/hibernate-orm] e2510d: HHH-13016 Add test case

GitHub noreply at github.com
Fri Jan 18 05:54:34 EST 2019


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: e2510d9e3d33c231ece9fe3ca188def504ae22bc
      https://github.com/hibernate/hibernate-orm/commit/e2510d9e3d33c231ece9fe3ca188def504ae22bc
  Author: Cody Lerum <cody.lerum at gmail.com>
  Date:   2019-01-18 (Fri, 18 Jan 2019)

  Changed paths:
    M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/simplecase/BasicSimpleCaseTest.java

  Log Message:
  -----------
  HHH-13016 Add test case


  Commit: 9c72384e1f879fee2d5c5b185aee5e5ef5045aff
      https://github.com/hibernate/hibernate-orm/commit/9c72384e1f879fee2d5c5b185aee5e5ef5045aff
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2019-01-18 (Fri, 18 Jan 2019)

  Changed paths:
    M hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/simplecase/BasicSimpleCaseTest.java

  Log Message:
  -----------
  HHH-13199 Add test case


  Commit: 624403e65c530f94a7f83cae353eb591f7a8065e
      https://github.com/hibernate/hibernate-orm/commit/624403e65c530f94a7f83cae353eb591f7a8065e
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2019-01-18 (Fri, 18 Jan 2019)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/query/criteria/internal/expression/LiteralExpression.java

  Log Message:
  -----------
  HHH-13016 HHH-13199 Force parameter binding for enum literals

Currently, we don't have a way to properly handle enum literals so get back to
using parameter binding, which was used before in the "case when" case
due to a bug fixed in HHH-13001.

Note that this forces the usage of enum literals even at the root of the
select clause.


  Commit: 23153d5d559214652a6d40de25fd2367d163e301
      https://github.com/hibernate/hibernate-orm/commit/23153d5d559214652a6d40de25fd2367d163e301
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2019-01-18 (Fri, 18 Jan 2019)

  Changed paths:
    A hibernate-core/src/main/java/org/hibernate/query/criteria/internal/expression/CaseLiteralExpression.java
    M hibernate-core/src/main/java/org/hibernate/query/criteria/internal/expression/SearchedCaseExpression.java
    M hibernate-core/src/main/java/org/hibernate/query/criteria/internal/expression/SimpleCaseExpression.java

  Log Message:
  -----------
  HHH-13016 Bring back CaseLiteralExpression

It was removed as part of
https://github.com/hibernate/hibernate-orm/pull/1361 but this PR didn't
fix all the issues as there are still cases where we don't deduce the
expected type and we need to have a proper cast.


Compare: https://github.com/hibernate/hibernate-orm/compare/15ea965d202c...23153d5d5592
      **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