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
Now it is possible to declare an entity class with an entity state of a wrong kind. For example, it is possible to create a Projection with a message implementing EntityState which has the following option declaration:
Although, it does not do any harm, it's obviously a programming error. This is not what the developer intended. Moreover, keeping such errors unnoticed prevents us from introducing specific interfaces for entity states for projections, process managers, and aggregates.
Suggested actions
1. Introduce ProjectionState, ProcessManagerState, and AggregateState interfaces which implement EntityState.
2. Update code generation to use new interfaces from the item 3 above.
3. Require specific entity state interfaces in Projection, ProcessManager, and Aggregate classes.
The text was updated successfully, but these errors were encountered:
Points no.1 and no.2 do not lead to a compilation failure, which we ideally want. And they may be both expensive and restrictive in terms of GraalVM compatibility.
Now it is possible to declare an entity class with an entity state of a wrong kind. For example, it is possible to create a
Projection
with a message implementingEntityState
which has the following option declaration:Although, it does not do any harm, it's obviously a programming error. This is not what the developer intended. Moreover, keeping such errors unnoticed prevents us from introducing specific interfaces for entity states for projections, process managers, and aggregates.
Suggested actions
ProjectionState
,ProcessManagerState
, andAggregateState
interfaces which implementEntityState
.Projection
,ProcessManager
, andAggregate
classes.The text was updated successfully, but these errors were encountered: