Out-of-the-box Versioning for Selected Entities

By Milton Moura on 28 May 2010
I would like to see out-of-the-box support for Versioning in selected entities, with all of which that entails:

- Query's default to the latest version available of the entity
- Control over the cascade of versioning to related entities

and other subtleties that might originate from discussion!
João Campos28 May 2010

The full versioning approach would be good, but I recon that may be quite difficult to define and implement.

For me, a less than perfect but yet acceptable solution would automatic control of an optimistic locking over entities, much in the style of the @Version annonation in JPA ( http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html#Version ).