converts an enum in a way that makes the conversion reversible (sometimes)
input: uses its classname and ordinal, reversible
else: uses its name, non reversible
in case of hierarchical structures this defines if a child class should be treatened
as "embedded".
Embedded: like a composite key in hibernate
Not Embedded: like a relation to another entity (ManyToOne)
This is not a metadata for the field itself, but for the context in which this field
(or its entity) will be used
check if we already added components to the layout component.
if this is the case then:
keep them cached and avoid readd
in development mode: remove the componentsin production mode: keep them cached
TODO: need to figure out whats the best way to recreate the components