Clean architecture: Persistent model or XML mapping?

Hi,

is there any plan with XML mapping in Hibernate in the future?

Annotations are the most popular approach, but it is not very useful for clean architecture concept. For the clean architecture I would prefer to have an XML mapping of domain classes, so the single responsibility of domain class can be preserved. I see, the alternative is to have a separated persistent model, but then the translation between persistent and domain model is needed, which I want to avoid.

Is there somebody using clean architecture with mapping? How are you dealing with this problem? Do you have the persistent model?

1 Like