DDD - ConcurrencySafeEntity 它的用途是什么

DDD - ConcurrencySafeEntity what is it being used for

在 Vaughn Vernon 的实现领域驱动设计一书中,他使用了一个名为 ConcurrencySafeEntity 的超类型,但找不到关于此 class 的确切目的的具体解释,将不胜感激这方面的任何解释

ConcurrencySafeEntity class 是为了防止并发问题Layer Supertype which avoids code duplication for entities that needs to implement optimistic locking