-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Please Help, Example or Tutorial for OGM CouchDB
PostPosted: Tue Oct 06, 2015 12:18 am 
Newbie

Joined: Fri Jan 09, 2015 9:51 am
Posts: 2
Any one can share tutorial for OGM CouchDB ? I'm looking for the solution for CouchDB in OGM. Please Help .


Top
 Profile  
 
 Post subject: Re: Please Help, Example or Tutorial for OGM CouchDB
PostPosted: Wed Oct 07, 2015 5:59 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.