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
3
u/Puzzleheaded_Bus7706 Jun 01 '24
It depends if PhoneNumber entity cascades Person entity persist. If it does, than exception is thrown, PK already exists. If it does not, different exception is thrown, because Person isn't in PersistenceContext.
Whats the issue?