Skip to content

Commit ea07262

Browse files
Custom ID generator (based on sequence)
1 parent 3ce7927 commit ea07262

File tree

1 file changed

+3
-3
lines changed
  • HibernateSpringBootCustomSequenceGenerator

1 file changed

+3
-3
lines changed

HibernateSpringBootCustomSequenceGenerator/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
**Description:** This is a Spring Boot example of using the `hi/lo` algorithm and a custom implementation of `SequenceStyleGenerator` for generating custom sequence IDs (e.g, `A-0000000001`, `A-0000000002`, ...).
44

5-
**Key points:**\
6-
- extend `SequenceStyleGenerator` and override the `configure()` and `generate()` methods\
7-
- set this generator in entities
5+
**Key points:**
6+
- extend `SequenceStyleGenerator` and override the `configure()` and `generate()` methods
7+
- set this generator in entities
88

99
<a href="https://leanpub.com/java-persistence-performance-illustrated-guide"><p align="center"><img src="https://github.com/AnghelLeonard/Hibernate-SpringBoot/blob/master/Java%20Persistence%20Performance%20Illustrated%20Guide.jpg" height="410" width="350"/></p></a>

0 commit comments

Comments
 (0)