Skip to content

Commit c4a668f

Browse files
committed
HHH-19449 update migration guide and what's new
1 parent 610743a commit c4a668f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

migration-guide.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ Also, `LockAcquisitionException` now extends `PessimisticLockException`.
259259
`Query#setOrder` was an incubating API added in support of Hibernate's Jakarta Data and Repositories implementations.
260260
It was never a great solution and has been replaced with a better alternative - link:{whatsNewBase}#QuerySpecification[QuerySpecification].
261261

262-
263262
[[misc-api]]
264263
=== Miscellaneous
265264

@@ -269,7 +268,7 @@ It was never a great solution and has been replaced with a better alternative -
269268
* Removed `Session.LockRequest` - use `LockOptions` instead
270269
* `SessionFactory.createEntityManager()` now returns `Session` for convenience
271270
* `CommonQueryContract.setFlushMode()` was deprecated in favor of `setQueryFlushMode` accepting a `QueryFlushMode`
272-
271+
* Incubating interfaces `BindableType`, `OutputableType`, and `BindingContext` were moved to `org.hibernate.type`
273272

274273

275274
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

whats-new.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,17 @@ This feature is considered incubating.
231231
====
232232

233233

234+
[[metamode-param-binding]]
235+
== Use of metamodel in query parameter binding
236+
237+
When an argument to a query parameter is of ambiguous type, the static metamodel may now be used to disambiguate.
238+
239+
[source,java]
240+
session.createSelectionQuery("from Thing where uniqueKey = ?1")
241+
.setParameter(1, key, Thing_.uniqueKey.getType())
242+
.getSingleResult();
243+
244+
234245
[[enum-checks]]
235246
== Converted Enums and Check Constraints
236247

0 commit comments

Comments
 (0)