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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
How connect a Mysql in the vaadin?
How connect a mysql in the vaadin?
could please give me a sample?
Hi,
There's some souce code example here:
https://vaadin.com/forum#!/thread/261143/264217
Hi,
The way how you should connect to MySQL (or any other DB ) depends quite a lot about your applications characteristics. Only in really trivial cases I can suggest to above solution. Instead I'd suggest to use your Java EE servers DataSource support or various Spring frameworks mechanisms. If you have a decent quality in your DB design, it might be best to reverse engineer JPA entities of your tables and use JPA to access the data.
If you have more details about your requirements, I'm happy to give you more detailed suggestions how to do it.
cheers,
matti