Jackrabbit 2.x and Object Content Mapping
Page is under development, author is exploring Jackrabbit 2.0 and OCM so there are just notes about.
Source code
Starting from version 1.6 OCM source tree is in separate project outside of main Jackrabbit source.
SVN repository of Commons components can be found at: https://svn.apache.org/repos/asf/jackrabbit/commons/
SVN of OCM is: https://svn.apache.org/repos/asf/jackrabbit/commons/ocm/
Code examples
No working example yet here but you can use old examples from http://jackrabbit.apache.org/object-content-mapping.html
OCM code depends only on JSR 170 or JSR 283 API so everything must work well.
Features that do not require "descriminator" node type registartion seems to work. Complex class maping requires registration of additional node type.
Node type registration is changed slightly in 2.0 so you need to change "NodeTypeDef" to "QNodeTypeDefinition" in node type registration code.