Calendar: Update database when an event is changed by dragging it


Is there any complete example of how to update the database when using the Calendar with a BeanItemContainer?
I don’t really know how to set the listeners to update in database just the event that has changed.

Thank you

Ok, I added an EventChangeListener in my event bean but… do I have to iterate over all my container elements to add the listener? Can I do it in a more efficient way?