0

I have been working on a legacy project which involves spring,hibernate and mariadb. Now there is a requirement where I need to migrate from mariadb to couchbase as well. I am assuming that there should not be significant level of code changes. I have tried looking on the internet to get some help in integrating hibernate orm with couchbase but no luck. Somehow I found that there are some paid versions that can handle such integration(hibernate-ogm). But i am not sure how can I do that. Thanks

Ajay Gupta
  • 51
  • 2
  • 9

2 Answers2

1

Currently, there is not a Hibernate OGM dialect for Couchbase, we only have one for CouchDB. It's experimental and you can find the source code on GitHub: https://github.com/hibernate/hibernate-ogm-couchdb

If you need help with it don't hesitate to ask for it on the Hibernate OGM forum or on the other channels.

By the way, everything is free and open source. You don't have to pay.

Davide D'Alto
  • 7,421
  • 2
  • 16
  • 30
  • Thanks a lot for the information. I will surely look in to it. However if my requirement is stringent and would want to continue using couchbase given the fact that my application is based out of hibernate, then could you let me know what all strategies could I adopt.... – Ajay Gupta Feb 13 '18 at 03:25
0

Hibernate OGM is not a paid version of Hibernate ORM, it's free and open-source, you can get it from Sourceforge or from Maven Central: http://hibernate.org/ogm/releases/5.1/#get-it

A getting started guide is available here.

yrodiere
  • 9,280
  • 1
  • 13
  • 35
  • Hello thanks for the information let me check it for – Ajay Gupta Feb 05 '18 at 09:53
  • I did found the hibernate-ogm-couchdb jar, but i am not sure how would I be able to find the database drivers to connect to the couchbase. Please advise – Ajay Gupta Feb 05 '18 at 10:27
  • You should check the documentation, this section in particular : https://docs.jboss.org/hibernate/ogm/5.1/reference/en-US/html_single/#ogm-couchdb – yrodiere Feb 06 '18 at 10:21