How connect a Mysql in the vaadin?

How connect a mysql in the vaadin?

could please give me a sample?


There’s some souce code example here:!/thread/261143/264217


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.