Spring Data JPA gets stuck at save method in test
<p>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. </p>

<p>The last DEBUG message that appears in my console is: </p>

<pre><code>16:20:35.293 [main] DEBUG org.hibernate.loader.Loader - Done entity load
</code></pre>

<p>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.<br>
So for example; 
<br>
<code>INSERT INTO my_table (id, value) VALUES (1, 'Hello World')</code>
<br>
Will work, and the test will succeed<br>
But this will not:<br>
<code>INSERT INTO my_table (id, value) VALUES (2, 'Hello World')</code>
<br>
And the test keeps running forever</p>

<p>Already been looking for something like auto_increment not setup right, but I couldn't find anything.</p>