We're updating the issue view to help you get more done. 

Improve the message to user when MongoDB does not like index and unique constraint on field.

Description

Currently when a user attempts to define a unique constraint and an index on the same field in MongoDB an exception stack trace is displayed.
Instead of a stack trace a WARNING message would be better.

This has been discussed in a forum thread

https://discourse.hibernate.org/t/using-unique-constraint-and-index-on-field-with-mongodb/888

Environment

None

Status

Assignee

Fabio Massimo Ercoli

Reporter

Jeremy Whiting

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.3.1.Final

Priority

Trivial