Which ORM framework can best handle an MVCC database design?

前端 未结 6 933
北海茫月
北海茫月 2021-02-06 02:30

When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with either a boolean field like \"IsLatest\" or an integer \"VersionId\", and you n

6条回答
  •  情深已故
    2021-02-06 03:17

    Check out the Envers project - works nice with JPA/Hibernate applications and basically does that for you - keeps track of different versions of each Entity in another table and gives you SVN-like possibilities ("Gimme the version of Person being used 2008-11-05...")

    http://www.jboss.org/envers/

    /Jens

提交回复
热议问题