Name
Specifies a custom name for an annotated element.
This annotation allows overriding the default naming conventions used by the framework. It's commonly used for:
Custom aggregate names in routing
Named parameters in configuration
Custom identifiers in serialization
Override default naming in code generation
Example usage:
@AggregateRoot
@Name("purchase-order") // Custom name for routing instead of class name
class OrderAggregate
// In configuration or parameters
fun process(@Name("order-id") orderId: String) {
// Parameter named "order-id" instead of "orderId"
}Content copied to clipboard
Parameters
value
The custom name to use for the annotated element.