Overview

Object/Content Mapping framework (ocm)

This Graffito subproject is an object/JCR persistence and query service. This tools lets you to persist java objects into a JCR compliant repository - including association, inheritance, polymorphism, composition, and the Java collections framework. Furthermore, this jcr-mapping allows you to express queries in Java-based Criteria, as well as in JCR query language. It offers also features like version support and object locking.

In order to easily support the JCR specification, any content application managing an high level object model can use this framework. For example, a classic Forum application contains objects like "Forum", "Topic" and "Post". Now, the data objects (pojo) can be managed by our JCR mapping tools in order to persist them into a JCR compliant repository.

Why an ocm ?

A couple of month ago, we have decided to create a new object mapping framework for different reasons :

  • Sometimes it is very convenient to be able to just access the JCR nodes and properties directly from your presentation-layer for very simple things (mostly generic display). When a lot of "business logic" are involved, the JCR API can be too low level and real business objects (pojo) are more appreciate in a such case.
  • ORM tools like OBJ or Hibernate are not appropriate for content oriented application.

Prerequisite

Before using this OCM framework, you should review the JCR specification and implementations like JackRabbit.

Download

There are no releases yet. See the menu "Getting Started" for instructions on how to download and build the Graffito JCR mapping sources.