In order to separate the domain objects from the persistence model in Mizura, I'm looking for ways to create a reasonable API for general purpose.

So I am searching for things like dependency injection and design patterns.

Below, some relevant information of this research:

Domain Model Pattern and related: