Hi, lazy initialized elements should be a resolved problem, but it will obviously need to load them during indexing as it the entry in the index structure needs to be fully rewritten.
An initialized but detached attribute should also not be a problem, however you are not expected to make changes to detached entities which are related to attached entities. In fact, I think it's a good idea to never make any change to a detached entity as that would be very surprising to other parts of a more complex system.
However the case in which you detach an entity - without changing it - and this causes you a LIE that's definitely a bug, I'll open a new bug on JIRA:
https://hibernate.atlassian.net/browse/HSEARCH-1675
thanks a lot for the tests!
I think a workaround would be to make sure you commit the transaction before you detach anything.
_________________ Sanne http://in.relation.to/
|