Skip to content
Mkyong.com
Mkyong.com
  • Development Service
  • Spring Boot
  • Java 8
  • Contact

sequence id

Spring Data MongoDB – Auto Sequence ID example

March 7, 2014 by mkyong

In this tutorial, we will show you how to generate an auto-incrementing sequence id in MongoDB + Spring Data environment. Tools used in this project : Spring Data MongoDB 1.2.1.RELEASE MongoDB 2.4.5 Eclipse 4.2 Maven 3 At the end of this tutorial, if the collection name “hosting” is saved, a new auto-incrementing sequence id will …

Read more

Categories mongodb Tags sequence id, spring-data 15 Comments

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Spring Guides
  • Docker Hub
  • Maven Central
  • Keep A Changlog
  • Semantic Versioning
  • Hugging Face - Qwen
  • Martin Fowler
About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
© 2026 Mkyong.com - Build with Love.