title: netbeans entity classes from db optimistic field
body: <p>I am using netbeans 8, hibernate 4, mysql. I create entities with netbeans by selecting entity classes from database menu. I need optimistic lock field for my entities.I have version column on all tables in the db. How can i add @Version annotation automatically to all tables?</p>
  
  <pre><code>@Version
  @Column(name="version", nullable=false)
  </code></pre>