Java – hibernate interceptor save?

I need to intercept the post save of an entity in Hibernate, but all the contents I find are on the save. The entity is processed before saving, and a postflush method returns a huge lazy iterator, which I can't understand. Please suggest that I capture the entity after hibernate is saved or updated,

to greet,

Solution

Postflush is what you want The iterator will allow you to traverse all entities inserted or updated After the SQL is executed in the database, it is called.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>