Skip to content

Commit 64c26fa

Browse files
committed
HHH-18728 - Allow mixed discriminator-value mappings for ANY
HHH-18729 - Allow custom strategy for implicit discriminator-value determination for ANY
1 parent 2ea2269 commit 64c26fa

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

release-announcement.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ NOTE: The functions are incubating/tech-preview and to use them in HQL,
7777
it is necessary to enable the `hibernate.query.hql.json_functions_enabled` and `hibernate.query.hql.xml_functions_enabled` configuration settings.
7878

7979
[[set-returning-functions]]
80-
== Set-returning functions
80+
== Set-returning Functions
8181

8282
A set-returning function is a new type of function that can return rows and is exclusive to the `from` clause.
8383
The concept is known in many different database SQL dialects and is sometimes referred to as table valued function or table function.
@@ -90,6 +90,22 @@ Out-of-the-box, some common set-returning functions are already supported or emu
9090
* `json_table()` - turns a JSON document into rows
9191
* `xmltable()` - turns an XML document into rows
9292

93+
94+
[[any-discriminator]]
95+
== @AnyDiscriminatorImplicitValues
96+
97+
The new `@AnyDiscriminatorImplicitValues` offers 2 related improvements for the mapping of discriminator values
98+
for `@Any` and `ManyToAny` associations.
99+
100+
First, it allows control over how Hibernate determines the discriminator value to store in the database for
101+
implicit discriminator mappings. Historically, Hibernate would always use the full name of the associated
102+
entity.
103+
104+
Second, it allows mixing of explicit and implicit value strategies.
105+
106+
See the link:{user-guide-url}#associations-any[User Guide] for details.
107+
108+
93109
[[cleanup]]
94110
== Clean-up
95111

0 commit comments

Comments
 (0)