Hello,
I have a question about how to implement a use case...
I have an entity which has a collection of non persistent items.
I keep the collection in a private field marked as @Transient . And I implement prepersist/preUpdate and onload call backs within the entity class.
The problem is with the dirty flags. As soon as a make a change to the collection and save it, then my subsequent changes to the collection followed by associated updates do not make their way into the database. Hibernate thinks the entity is not dirty and ignores the changes.
Obviously I am making something wrong.
What is the correct way of streaming an arbitrary serializable field into a blob field.
Any suggestions are most appreciated.
Regards,
Hasan Ceylan
|