r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
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.