'Hibernate persist() does insert than update

Test for hibernate persist() has following output:

Hibernate: select nextval ('SEQ_wal')

Hibernate: insert into wal

Hibernate: update wal

Does anybody knows why it has update after insert? I am not updating entity after persist().



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source