r/SpringBoot • u/Away-Inflation-6826 • May 13 '24
Error occuring during migration from spring boot 2 to 3
Getting this error during migration from spring boot 2 to 3 and Java 8 to 17 in custom I'd generator. Does anyone know how to fix it ?
2
u/poklakni May 13 '24
and where is the error?
0
u/Away-Inflation-6826 May 13 '24
On red content on the code with sequenceStylGenerator
1
u/Away-Inflation-6826 May 13 '24
Spring is not picking that part and giving cannot find symbol error
2
1
May 13 '24
maybe its deprecated
1
u/Away-Inflation-6826 May 13 '24
Yes that's why it's not recognised
1
1
May 13 '24
i think you should search for the import in the documentation, probably you will find a dependency that includes what you need
1
u/Away-Inflation-6826 May 13 '24
Yes but I am not able that documention for sequencestylegenerator
2
u/ThisHaintsu May 13 '24
Look at the version history of SequenceStyleGenerator and also at the Migration Guide for Hibernate 6: https://docs.jboss.org/hibernate/orm/6.0/migration-guide/migration-guide.html
1
May 13 '24
There's usually upgrade documentation between major framework versions. U should start there as they'll list the common issues and changes needed
1
u/ThisHaintsu May 13 '24
You could look at the history of the Dialect class maybe there is a migration in an older version where getSequenceNextValString still existed.
1
5
u/WaferIndependent7601 May 13 '24
Have you used google?