Hi,
this might help you: http://in.relation.to/2015/01/19/no-sql-with-hibernate-ogm-101-persisting-your-first-entities/
It shows how to use OGM with MongoDB and Neo4j. If you want to use it with CouchDB you need to set the properties as follow:
Code:
<properties>
<property name="hibernate.ogm.datastore.provider" value="COUCHDB_EXPERIMENTAL" />
<property name="hibernate.ogm.datastore.create_database" value="true" />
</properties>
you also need to use the CouchDb dependency:
[code]
<dependency>
<groupId>org.hibernate.ogm</groupId>
<artifactId>hibernate-ogm-couchdb</artifactId>
</dependency>
[code]
You can find additional properties in the configuration paragraph of the documentation: http://docs.jboss.org/hibernate/ogm/stable/reference/en-US/html/ch13.html
I hope this help,
Davide