DATAMONGO-827 - Allow index creation use mongodb auto generated names.
We now support letting MongoDB generate index names by introducing the attribute "useGeneratedName" to the @Indexed, @GeoSpatialIndex, @CompoundIndex annotations.
pull/95/merge
Thomas Darimont12 years agocommitted byOliver Gierke
@ -58,8 +58,6 @@ public class GeospatialIndex implements IndexDefinition {
@@ -58,8 +58,6 @@ public class GeospatialIndex implements IndexDefinition {
*/
publicGeospatialIndexnamed(Stringname){
Assert.hasText(name,"Name must have text!");
this.name=name;
returnthis;
}
@ -152,12 +150,12 @@ public class GeospatialIndex implements IndexDefinition {
@@ -152,12 +150,12 @@ public class GeospatialIndex implements IndexDefinition {
@ -187,6 +185,7 @@ public class GeospatialIndex implements IndexDefinition {
@@ -187,6 +185,7 @@ public class GeospatialIndex implements IndexDefinition {
@ -186,7 +186,9 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver {
@@ -186,7 +186,9 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver {
@ -222,7 +224,11 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver {
@@ -222,7 +224,11 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver {
@ -260,7 +266,11 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver {
@@ -260,7 +266,11 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver {
@ -99,6 +102,29 @@ public class GeoSpatialIndexTests extends AbstractIntegrationTests {
@@ -99,6 +102,29 @@ public class GeoSpatialIndexTests extends AbstractIntegrationTests {
@ -168,4 +194,15 @@ public class GeoSpatialIndexTests extends AbstractIntegrationTests {
@@ -168,4 +194,15 @@ public class GeoSpatialIndexTests extends AbstractIntegrationTests {
@ -166,6 +167,20 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@@ -166,6 +167,20 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@ -217,4 +232,10 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@@ -217,4 +232,10 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@ -310,6 +310,23 @@ public class MongoPersistentEntityIndexResolverUnitTests {
@@ -310,6 +310,23 @@ public class MongoPersistentEntityIndexResolverUnitTests {
@ -318,6 +335,13 @@ public class MongoPersistentEntityIndexResolverUnitTests {
@@ -318,6 +335,13 @@ public class MongoPersistentEntityIndexResolverUnitTests {