Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: MongoDB authenticationDatabase different from database
PostPosted: Mon Mar 16, 2015 3:40 pm 
Newbie

Joined: Mon Mar 16, 2015 3:34 pm
Posts: 1
Hi,
In our mongo, authenticationDatabase is admin and I want my entities to be stored in a different database. How can I achieve this with hibernate OGM? Currently if I specify <property name="hibernate.ogm.datastore.database" value="admin" /> the entities are created in admin database, but if I change it to other database, authentication fails.

Thanks


Top
 Profile  
 
 Post subject: Re: MongoDB authenticationDatabase different from database
PostPosted: Wed Mar 18, 2015 3:28 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 386
Hi,

Which version are you exactly using? Can you try the latest version (4.1.3.Final), there has been a related bugfix recently? If it still doesn't work, where exactly does authentication fail, could you share a stack trace?

Thanks,

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.