@Davide I would like to reformulate the point 2 into: 2a: MongoDB allows that multiple indexes with same type and options are defined on same columns, so also us we have to allow this configutation. Ex: @Index(columnList="email", unique = "true", name=name1) and @Index(columnList="email", unique = "true", name=name2) --> no warning or exception 2b: If multiple indexes with same type but different options are defined on same columns, MongoDB throws an exception, so we should do it too. Ex: @Index(columnList="email", unique = "false", name=name1) and @Index(columnList="email", unique = "true", name=name2) --> exception What you think? |