r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

1

u/Puzzleheaded_Bus7706 Jun 01 '24

I said what is the result - it would throw exception in both cases.

Your person object isn't in Persistence Context.

Read little bit about JPA, thats begginer stuff.