title: Vaadin With Grails
body: <p>I am new to <code>vaadin</code>, couple of days back i have downloaded <code>vaadin</code> dashboard demo application.</p>
  
  <p><a href="http://demo.vaadin.com/dashboard/">http://demo.vaadin.com/dashboard/</a> <code>vaadin quickticket demo application</code></p>
  
  <p>And i found it amazing and become a fan of vaadin.</p>
  
  <p>I am <code>swing</code> developer and about to start new project using <code>vaadin</code>. I am confused about database communication to <code>vaadin</code>. I am using <code>MySql</code> database.</p>
  
  <p>As i did not stared writing code, can some one guide me which approach would be best.</p>
  
  <ol>
  <li>Use <code>vaadin</code> with <code>grails</code>
  <ul>
  <li>fast in development use <code>spring</code> and <code>hibernate</code>. Do it impact any performance as there is number of layer?</li>
  <li>I have no idea about <code>grails</code>, if it best with <code>vaadin</code> then i will learn it.</li>
  </ul></li>
  <li>Directly use <code>TableQuery</code> and <code>SQLContanier</code>.</li>
  <li>Use <code>Hibernate</code> independently to fetch the data from database.</li>
  <li>Use <code>JSON</code> and make <code>api</code> call to another <code>webservices</code> to get the data . as the <code>vaadin quickticket demo application</code> is doing.</li>
  </ol>
  
  <p>Which approch should i use or can anyone guide me which could be the best practices with <code>vaadin</code> with <code>MySql</code> database.</p>
  
  <p>Should i used <code>grails</code> with <code>vaadin</code> i am developing dashboard application for tracking inventory. Will it cause any major issue with performance or speed.</p>