It's adding a good amount of extra complexity just to have type safety when setting otherwise private members.
There's got to be a simpler and more elegant way to achieve the desired effect.
In the meantime, you have a problem where a persistor that needs to update attrs (eg adding a primary key after save) will update the persistedlever, but not the lever, which is what the main interface returns, thus suggested use leads to duplicates.
It's adding a good amount of extra complexity just to have type safety when setting otherwise private members.
There's got to be a simpler and more elegant way to achieve the desired effect.
In the meantime, you have a problem where a persistor that needs to update attrs (eg adding a primary key after save) will update the persistedlever, but not the lever, which is what the main interface returns, thus suggested use leads to duplicates.