title: Combining SQL and NOSQL databases using Hibernate ORM and OGM
body: <p>I have an application that uses SQL Server. I wanted to use a NOSQL store and I decided it to be graph since my data is highly connected. Neo4j is an option.</p>
  
  <p>I want optimally to be able to switch the databases without touching the application layer, say, just modifying some xml configuration files.
  I've taken a look at some examples public on the web, I've seen that ORM and OGM don't configure applications the same way, the config file of each has it's own name and more importantly its own structure. Looking at the code of each revealed that they also differ in the way they initialize the session, which doesn't sound good for what I'm thinking of.</p>
  
  <p>My question is: "is it possible or feasible-without-great-overhead to switch between the two databases without touching the existing application code? I may add things but not touch what exists already". It would be a great idea to establish a pure polyglot persistence between SQL and NOSQL databases, for example, using Hibernate.</p>
  
  <p>I want to hear from you guys before digging deeper. Do we have one of Hibernate men with us here in SO? </p>