You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I wondered if it is possible to generate classes that extend existing (marker) traits? An example:
// General marker for all domain eventstraitDomainEvent {
defpersistenceId:StringdefcorrelationId:UUID
...
}
// Specific customer events in a specific package// Optimally it should be sealed, but that does probably // not work because of code gen.traitCustomerEventextendsDomainEvent {
defcustomerId: ...
...
}
// Result of code generation from corresponding .proto filescaseclassCustomerPolicyChanged(...) extendsCustomerEventcaseclassCustomerStatusUpgraded(...) extendsCustomerEvent
...
The text was updated successfully, but these errors were encountered:
Hi, I wondered if it is possible to generate classes that extend existing (marker) traits? An example:
The text was updated successfully, but these errors were encountered: