A simple persistence abstraction for validating and storing model entities