1

Here is what was going on: what was going on

I had read the question before asking this question: What is the difference between persist() and merge() in JPA and Hibernate?

But what I am wondering is the copy one (return by merge) should be the same with the old one, you can see it is not from the pic.

I am using:

  • Spring data jpa:1.11.12
  • hibernate:5.3.7.final

I am a newbie to hibernate, I guess it is a problom of hibernate's serialization and deserialization.Or is it the designed behavior?

Sando Geek
  • 81
  • 6
  • Please read the answer to https://stackoverflow.com/questions/4509086/what-is-the-difference-between-persist-and-merge-in-jpa-and-hibernate – John Camerin Jan 28 '19 at 02:23
  • Solved already.The reason for this is overriding hibernate UserType#deepCopy in a wrong way. – Sando Geek Feb 21 '19 at 01:53

0 Answers0