JPAContainer implements Indexed.Container interface, so the cast should be ok. Have you checked that you are using correct version. The newest version 4.0.0 is for Vaadin 8, use version 3.2.0 with Vaadin 7.x.
Hi,
Firstly i would like to thanks for your reply.
Actually i did check and i’m using the newest version of JPAContainer. I did implement it in my maven project by maven dependency.
Like this:
Ok, its working now. Actually i did check my version of vaadin and it was 7.7.7 instead of 8 so that was a problem.
It’s my bad and i’m sorry about it. Next time i will check everything more carefully.