hilla
hilla copied to clipboard
Add endpoint transfer-type's name to the generated models as a property
Describe your motivation
This will enable having the name of the endpoint's transfer type in production mode (preserved from minification), and makes it possible to use the name dynamically, e.g. to set view titles in CRUD. See https://github.com/vaadin/hilla/pull/1930#discussion_r1435151990
Describe the solution you'd like
A getter in generated Model classes that returns the name of the class e.g. "Person", "Address", and etc.
Describe alternatives you've considered
No response
Additional context
No response
This could be planned as a part of https://github.com/vaadin/hilla/discussions/1634 enhancements.
Let's take it as part of https://github.com/vaadin/hilla/discussions/1634