title: Flyway and JPA integration
body: <p>My current Spring 3.0 project is integrating with Flyway.</p>
  
  <p>Thanks to the google site so there are document I can counting on. But unfortunately there is not much talking about integration with <code>JPA</code>.</p>
  
  <p>So the questions is: </p>
  
  <ol>
  <li><p>How to integrate Flyway with <code>persistence.xml</code>? And how does it work? Each time JPA provider will <code>auto generate</code> schema update so how we run a script before or after then?</p></li>
  <li><p>I guess the query by flyway so far does not support HQL and such so is there any sample code then I can go through to know how to integrate the migration event? Design an interceptor or a new aspect?What to do on a domain level?</p></li>
  </ol>
  
  <p>Any hint is appreciated. Thanks in advance.</p>