Getting ItemID from value change event

I am new to Vaadin and I am having trouble using the Indexed Container.

I have an IndexedContainer connected to a table and an event change listener on the container. I want to be able to write changes to a DB but the event object only has the new value. Is there any way of getting the changed item’s ID from the value change event?

Not really. You can’t event iterate over items in the container and compare item properties, because IndexedContainer returns always new instances of Item and Property. I would suggest using BeanItemContainer or then you have to keep track of the changes outside the container.