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 |