In Hibernate ORM we'd like to support CouchDB's built-in implicit locking mechanism which manages a String-typed revision id on the server side. This would most naturally be mapped like this:
@Generated @Version String _rev;
To make this work, StringType needs to implement VersionType. Support would there only be for server-side generated values.
ML discussion: http://lists.jboss.org/pipermail/hibernate-dev/2013-November/010603.html
|