DATAMONGO-544 - Added support for TTL collection via indexing annotation.
Added expireAfterSeconds attribute to @Indexed and @CompoundIndex annotations. Adapted MongoPersistentEntityIndexCreator to evaluate the attribute and configure the index about to be created if the attribute was configured to something non default.
Original pull request: #55.
pull/25/merge
Johno Crawford13 years agocommitted byOliver Gierke
@ -108,7 +109,7 @@ public class MongoPersistentEntityIndexCreator implements
@@ -108,7 +109,7 @@ public class MongoPersistentEntityIndexCreator implements
@ -143,7 +144,7 @@ public class MongoPersistentEntityIndexCreator implements
@@ -143,7 +144,7 @@ public class MongoPersistentEntityIndexCreator implements
@ -192,9 +193,11 @@ public class MongoPersistentEntityIndexCreator implements
@@ -192,9 +193,11 @@ public class MongoPersistentEntityIndexCreator implements
@ -203,6 +206,10 @@ public class MongoPersistentEntityIndexCreator implements
@@ -203,6 +206,10 @@ public class MongoPersistentEntityIndexCreator implements
@ -106,6 +107,20 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@@ -106,6 +107,20 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@ -117,16 +132,18 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@@ -117,16 +132,18 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@ -134,6 +151,7 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@@ -134,6 +151,7 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@ -141,11 +159,12 @@ public class MongoPersistentEntityIndexCreatorUnitTests {
@@ -141,11 +159,12 @@ public class MongoPersistentEntityIndexCreatorUnitTests {