Hi guys,
I would appreciate some help with the following:
transactionContainer.containsId(transactionId);
transactionContainer.removeItem(transactionId);
transactionContainer.commit();
The first and second line returns true
The third line throws the following exception:
Caused by: java.lang.IllegalArgumentException: Item to be deleted must be given.
at com.vaadin.data.util.sqlcontainer.query.generator.DefaultSQLGenerator.generateDeleteQuery(DefaultSQLGenerator.java:237)
at com.vaadin.data.util.sqlcontainer.query.TableQuery.removeRow(TableQuery.java:731)
at com.vaadin.data.util.sqlcontainer.SQLContainer.commit(SQLContainer.java:1016)
at data.cruds.TransactionCRUD.addMemTransLookupEntries(TransactionCRUD.java:67)
at data.cruds.TransactionCRUD.addTransaction(TransactionCRUD.java:46)
... 46 more
transactionId is from the type RowId.
What am I doing wrong?