hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Add endpoint transfer-type's name to the generated models as a property

Open taefi opened this issue 7 months ago • 2 comments

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

taefi avatar Jan 03 '24 10:01 taefi

This could be planned as a part of https://github.com/vaadin/hilla/discussions/1634 enhancements.

taefi avatar Jan 03 '24 10:01 taefi

Let's take it as part of https://github.com/vaadin/hilla/discussions/1634

platosha avatar Jan 03 '24 12:01 platosha