Loading...
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
TUTORIAL

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

Vaadin upload image and store it to database

Cristina Hategan
5 years ago Jun 11, 2016 8:46am
Marco Collovati
5 years ago Jun 11, 2016 9:27am
Cristina Hategan
5 years ago Jun 11, 2016 9:42am
Marco Collovati
5 years ago Jun 11, 2016 10:07am

Where does show instance come from? 
If show is a new entity use em.persist(show) otherwise you can obtain a fresh instance with em.find(...), change it, and then  em.merge(...)

HTH
Marco

Cristina Hategan
5 years ago Jun 11, 2016 10:21am