Kai Moritz sorry for the long delay. Your bridge is quite special with its reflection usage; it seems like you're making a framework to compensate for some missing functionality in Hibernate Search: could you describe what you could need for a clean approach?
The problem you have is not specifically related by the reflection, but with the recursion. We specifically initialize any collection or field we walk into (see DocumentBuilderIndexedEntity:533) and you could do the same to avoid LIE .. but TBH this shouldn't be necessary, at least it was not with Hibernate ORM 3.x but since 4.x I've seen several reports like this, which led me to add that initialization code. I need to check with the ORM team about this.
|