Hi experts, I got a question about synchronising indexed property to the child property. Say there's an object A , having a list collection B. So B got a index property, which is managed by hibernate, right?
Then B is the parent of an object C. For some reason, we need the index property of B to also be stored in a property of C. So my question is, is there any mapping in the configuration I can do to achieve this result?
Since the index is managed by hibernate, I have found that the index value is only set/updated at DB-access time and is not available in the persistent object before really saved to DB, which is not good even I try to copy the property directly in code. Not to mention cases that elements in the collection got deleted and the index changed.
Thanks in advance.
|