Hi,
Yes I tried the adapter. In the case of save, it worked correctly. But in the case of Update, it did not. Actually, I have to change a child collection of the entity which is being persisted. I tried to set a collection on a instance variable of the entity in onDirtyFlush, but it returned a class cast exception. Some digging on the forums mentioned that Hibernate internally saves the collections in one of its own formats.
Can you give me a hint or a link on how I can manage the updates on child collections in the case of onDirtyFlush?
Thanks & Regards,
Nitin
|