hibernate/hibernate-search — pull request #328 by gsmet (2012-10-05 15:07:46+00:00)
Title: HSEARCH-1201 - Initialize proxy before sending it in the fieldbridge machinery

Hi,

This pull request fixes the bug demonstrated in the test case.

However, it breaks the AvoidDuplicatesTest test case (and another one for the same reason). I think the problem is that the unproxiedInstance at the start of the method should be unproxied without the session injected in the LazyInitializer as it was initialized in another session but I haven't found any API to do so.

Could you please provide us with some guidance on how we can go further on this.

Thanks.

--
Guillaume