Skip to content
Advertisement

The increment size of the sequence is set to [50] in the entity mapping while the associated database sequence increment size is [1]

I’m following the Learn Spring 5 etc on udemy and I’m at the part where we test our application. Everything worked fine till now, i was able to connect to the postgreSQL database and all but now I’m stuck at this test failing since 2 days.

I don’t understand what is causing the Test to fail. The application run but the test doesn’t. Here it is the test class:

JavaScript

And this is the stack trace:

https://pastebin.com/WcjNU76p

Employee class (don’t mind the comments, they are probably garbage):

JavaScript

Also this is the schema.sql where i reference those sequences, since this file is run by the test, i have just noticed that IntelliJ mark some errors in this file. For example it mark red some spaces and the T of TABLE saying:

JavaScript
JavaScript

Advertisement

Answer

You never tell it to about the sequence, just what the generator is called

Try

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement