Change from ORM to OGM

Hello,
i want to change from a SQL to a NoSQL database. How big is the input to change from Hibernate ORM to Hibernate OGM?
Thank you so much for your help,
Best Laura

Hi, It depends.
Which DB are you planning to use?
Hibernate OGM as some limitations compared to ORM, but if your use cases doesn’t need the unsupported features, it shouldn’t be too hard.

In particular. you need to check if transactions are supported in OGM for the NoSQL db of you choice and that support for queries on associations is limited (you might want to use native queries as an alternative).

You can find more details in the documentation: https://docs.jboss.org/hibernate/stable/ogm/reference/en-US/html_single/#ogm-gettingstarted

To begin with, you can add OGM dependencies to your project and apply the proper settings and see what happens.