mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 13:14:50 +00:00
Apart from cosmetic changes, we were testing in the equals() method that the instance == the proxied object which will always be true. We should use the argument of the equals() method instead to do the comparison. And we can do the comparison on the instance, instead of requiring passing the proxiedObject into the interceptor.