Native-query result-mapping expansions (legacy) #3955
Replies: 3 comments 3 replies
-
Fine by me. |
Beta Was this translation helpful? Give feedback.
-
I'm not attached to this as I have never used this in the past, but if we drop this, the only way to map native query results is to use |
Beta Was this translation helpful? Give feedback.
-
I've used this in the past for sure. I don't have access to that code anymore, but I'll try to drop here what I do remember... My domain model was very simple entities, without associations, essentially a table where each row represents a business operation. I had to write complex queries with CTEs and UNIONs, and that wasn't supported in HQL at that point. So I had to go native. But really, the result of my query was just entities that were otherwise mapped in Hibernate ORM. So I wrote a complex native query to select the entities, and then I used this There may be other ways to do that, but I'm not aware of them. |
Beta Was this translation helpful? Give feedback.
-
Thinking we may want to drop our legacy support for native-queries supplying "expansions". E.g.
And maybe even the legacy result-mapping API altogether.
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions