Override the @NamedPattern annotation programmatically

Is there a way to override the @NamedPattern annotation programmatically?
Thanks.

Hi,

  1. 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

  2. You can implement name pattern as method, and in this method you are free to implement any logic.

1 Like