title: How can I customize the DDL generated with Hibernate's hbm2ddl (using annotations)?
body: <p>Here's what I want to do:<br>
  I'm using Hibernate (3.3.2) to map my Ingres 10 database. My java entities are generated after a meta model, so we decided to use annotations to ease things.<br>
  What we want to do after the code generation is generate the DDL instructions to create the database so we use the hbm2ddl tool and we have something like:</p>
  
  <pre><code>drop table xxx;
  create table xxx ...;
  </code></pre>
  
  <p>What I miss here are extra SQL statement to e.g. add privileges on tables, something like:</p>
  
  <pre><code>drop table xxx;
  create table xxx ...;
  grant xxx on table xxx;
  </code></pre>
  
  <p>I know I could use something called database-object to generate such statements but I think it's only available with the XML mapping. Can you confirm this?<br>
  If that is confirmed, do you see a better solution for doing such a thing?<br>
  Many thanks to all.</p>