typesafe references to named queries and result set mappings #4483
Replies: 3 comments
-
Note that for |
Beta Was this translation helpful? Give feedback.
-
Sounds like a nice addition, but I think there are a few things to consider.
Anyway, you'd probably have to analyze annotations in |
Beta Was this translation helpful? Give feedback.
-
This (and much more) has been implemented. |
Beta Was this translation helpful? Give feedback.
-
We should enhance the jpamodelgen to produce things that can be used as typesafe references to
@NamedQuery
s and@ResultSetMapping
s.This could in principle be as simple as just a
for
@NamedQuery(name="customerByName", ....)
but in principle we could parse the query and determine its result type, letting us generate something like:I would be happy to work on this if someone who knows how jpamodelgen works could point me in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions