-->
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.  [ 4 posts ] 
Author Message
 Post subject: Support for both relational and noSQL databases
PostPosted: Thu Dec 18, 2014 1:37 pm 
Newbie

Joined: Thu Dec 18, 2014 1:30 pm
Posts: 2
I saw the following under the OGM page (emphasis mine):

Quote:
Mixing several NoSql datastores in one application, e.g. use Neo4j for your friendship graph and MongoDB for your blog posts. Or mix NoSql and relational databases (coming soon)


I'm exploring Hibernate as a candidate for a project I'm working on. We are planning to support both relational and NoSQL databases. The bolded section of the quote sounds like Hibernate does not currently support this scenario but I'm wondering if it's supported but requires different code/queries/configuration/etc for each type of database or just completely won't work for some reason or what.

If anyone can provide a bit more detail on this scenario I'd appreciate it.

Thanks


Top
 Profile  
 
 Post subject: Re: Support for both relational and noSQL databases
PostPosted: Fri Dec 19, 2014 5:00 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hi,

This statement is a bit misleading, I need to improve it.

If you want to have some entities in a RDBMS and some entities in a NoSQL store and that these entities have no association between each other (in the JPA sense), then you can perfectly do that. We have a test that makes sure both Hibernate ORM and Hibernate OGM can start in the same application.
Simple add several persistence units in your persistence.xml and have one of them use Hibernate ORM and the other Hibernate OGM.
If there is a problem here, we need to fix it :)

If you want to have the same entities or entities linked with associations mixed between the rDBMS and a NoSQL store then we don't support that format yet and that will take a while I think.

I hope that clarifies things.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: Support for both relational and noSQL databases
PostPosted: Fri Dec 19, 2014 5:27 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I have updated the FAQ http://hibernate.org/ogm/faq/#do-you-support-both-relational-and-nosql-databases

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: Support for both relational and noSQL databases
PostPosted: Tue Dec 30, 2014 1:47 pm 
Newbie

Joined: Thu Dec 18, 2014 1:30 pm
Posts: 2
Thanks, that is exactly the clarification I was looking for.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.