Is there a way to override the @NamedPattern annotation programmatically?
Thanks.
Hi,
-
You can override name pattern for entity inherited from platform or add-ons by specifying new value in metadata.xml:
A.metadata.xml - CUBA Platform. Developer’s Manual -
You can implement name pattern as method, and in this method you are free to implement any logic.
1 Like