Model elements (tl.tabletypes) are constructed from table definitions. Currently, it is not possible to set annotations on these types, as they are synthesized from the table definitions (*Meta.xml) when the system starts.
Improvement
In *Meta.xml, it should be possible to apply `TLTypeAnnotation`s to a metaobject definition:
Using a special `model-annotations ` annotation , `TLTypeAnnotation`s can be applied to a metaobject ; these are then copied to the generated model elements during the synthesis of `tl.tabletypes`.
The configuration
#!xml
<metaobject object_name="MyTable">
<annotations>
<model-annotations>
<options>
<generator ... />
</options>
</model-annotations>
</annotations>
<attributes>
would configure an options generator for all attributes that store objects in the `MyTable ` table, which is used to restrict the selection. The `options` annotation is a ` TLTypeAnnotation` that can normally only be set on `class ` and ` property ` model elements.
Test
- See #24730 (Annotation of export bindings to the meta-element table).