Quantcast
Channel: Spring Community Forums - NoSQL
Viewing all articles
Browse latest Browse all 128

Spring Data Mongo not reporting mongo unique constraint error

$
0
0
Hi

I am new to using Spring Data with mongo. I configured mongo to have unique contraint on a collection so that the name element is unique.

The code works as expected, not allowing duplicates to be entered, but I get nothing back in the app - no exception or error.

How can I set this to occur?

Thanks for your help....

Viewing all articles
Browse latest Browse all 128

Trending Articles