Hi Team!
In previous Hibernate versions, we used our CustomEntityPersister (s) to implement additional logic for the Insert and Update operations.
In the Hibernate 7 migration guide, I see that only this annotation was removed without any alternatives.
What is the reason for removing it?
Perhaps I can restore this annotation using legacy processing logic in my project?
I have found that the PersisterClassResolver class is now responsible for setting the EntityPersister for the class.
But I did not find any examples of how to use it.
Should I extend PersisterClassResolver?
How then to register a new CustomPersisterClassResolver?
I am thinking about creating the annotation in project with the same Name and Parameters, and then in CustomPersisterClassResolver retrieve EntityPersister from the annotation parameter.
Will it work?
Any code examples and suggestions will be helpful.
Thank you!