Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

[JPAContainer] Remove duplicate rows

Remy Travis
6 years ago Oct 28, 2016 7:49am

Hi everyone,

I'm struggling to find a way in order to remove all duplicate rows from my JPAContainer...
Any ideas ?

Remy Travis
6 years ago Oct 28, 2016 9:52am

I tried iterating over the itemIds from my table then I sorted the list to remove the duplicate rows but when I call the method removeItem() of Table.class it removes rows from my database ! I'm using a JPAContainer built with this call : container = JPAContainerFactory.makeJndi(MyClass.class);

I just want to delete the rows from the table only, not from the database !

Remy Travis
6 years ago Oct 28, 2016 2:57pm