I'm having trouble to get my unit test working with the CrudRepository.save method. When I run my unit test it keeps running forever, not going past the save() method.
The last DEBUG message that appears in my console is:
16:20:35.293 [main] DEBUG org.hibernate.loader.Loader - Done entity load
Now the weird part is that it is working if I execute one insert statement using the old JdbcTemplate, ONLY if the primary key is 1.
So for example;
INSERT INTO my_table (id, value) VALUES (1, 'Hello World')
Will work, and the test will succeed
But this will not:
INSERT INTO my_table (id, value) VALUES (2, 'Hello World')
And the test keeps running forever
Already been looking for something like auto_increment not setup right, but I couldn't find anything.