Skip to content

Commit

Permalink
#350: clarify SqlResultSetMapping with multiple EntityResult and conf…
Browse files Browse the repository at this point in the history
…licting aliases

Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Mar 4, 2022
1 parent 281be51 commit 5ac9693
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions spec/src/main/asciidoc/appendixes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ Clarified definition of the _Basic_ type

Clarified the order of parameters in the _LOCATE_ function

Clarified `SqlResultSetMapping` with multiple ``EntityResult``s and conflicting aliases
7 changes: 4 additions & 3 deletions spec/src/main/asciidoc/ch03-entity-operations.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2017, 2021 Contributors to the Eclipse Foundation
// Copyright (c) 2017, 2022 Contributors to the Eclipse Foundation
//

== Entity Operations [[a1060]]
Expand Down Expand Up @@ -5625,8 +5625,9 @@ Query q = em.createNativeQuery(
----

When the column names of the SQL result do
not correspond to those of the object/relational mapping metadata, more
explicit SQL result mapping metadata must be provided to enable the
not correspond to those of the object/relational mapping metadata
or introduce a conflict in mapping column defaults as in the example code above,
more explicit SQL result mapping metadata must be provided to enable the
persistence provider runtime to map the JDBC results into the expected
objects. This might arise, for example, when column aliases must be used
in the SQL SELECT clause when the SQL result would otherwise contain
Expand Down

0 comments on commit 5ac9693

Please sign in to comment.