I am used to working with entity objects and now I am switching to DDD principles so I will start using domain objects.

I am used to decorate the properties of my entity objects with attributes such as `RequiredAttribute` or `StringLengthAttribute`. I am also used to implement the `IValidatableObject` on my entity objects.

My question is - is it acceptable to use attributes and `IValidatableObject` on my domain objects? Is it consistent with DDD? Thank you.