-->
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.  [ 2 posts ] 
Author Message
 Post subject: HIbernate OGM @Column(unique = true) doesnt work
PostPosted: Fri Nov 13, 2015 6:43 am 
Newbie

Joined: Fri Nov 13, 2015 12:19 am
Posts: 13
Hi,

How to apply UniqueConstraint on a particular column using Hibernate OGM+MongoDB? I tried @Column(Unique=true) it didnt work.

Any pointers on how to define uniqueConstraint on MongoDB Datastore?

Thank you,
Domnic Nadar.


Top
 Profile  
 
 Post subject: Re: HIbernate OGM @Column(unique = true) doesnt work
PostPosted: Mon Nov 16, 2015 5:51 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
Hi,
OGM does not support this feature at the moment.

We have an open issue for it: https://hibernate.atlassian.net/browse/OGM-910

Davide


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