That's because JPA isn't involved here. It's directly using hibernate api's and not sticking to the standard which is what I was talking about.
[1] - https://www.objectdb.com/java/jpa/persistence/update
[2] - https://stackoverflow.com/a/8307991
[3] - https://docs.oracle.com/javaee/6/tutorial/doc/bnbqw.html#bnb...
EDIT: Oops I accidentally replied to this twice