|
Greetings,
I wonder if it is possible to create instance of PersistentCollection subtype based on regular collection of persistent entities.
For example in my case (webapp, hibernate behind stateless session beans) I do
criteria.list() -> send results to UI -> user adds/deletes/updates the list -> then I need to store changes.
At the moment there is a considerable amount of [not very beautiful] code to track changes to initial list and do inserts/deletes/updates. At the same time it seems that persistent collections already do that and it would be nice to reuse this functionality.
thanks
|