I am new to Spring and JPA, wasted 5 days and no result with searching internet. I want to save object to SQL SERVER, connection is correct but when I write .flush() I get t
To make the story short, try adding @Transactional at the very beginning of your method. That was an issue in my case.
@Transactional