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
You should introduce your entity manager to your transaction manager, so that when you annotate your function with @Transactionalit loads instances from the pool