Tag Archives for " spring-data "

How to assign custom document IDs automatically by using event listeners in Spring Data MongoDB

When using Spring Data MongoDB IDs can be automatically generated for documents provided that you’re using an ObjectId, String or BigInteger as the underlying type. What if you would like to use some other, non-autogeneratable type for IDs?

Continue reading