BaseEntity implementation.