title: how to generate meta model from entity?
body: <p>I was trying to do this with hibernate tools, Also with maven like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
    &lt;groupId&gt;br.com.ingenieux.maven.annomojo&lt;/groupId&gt;
    &lt;artifactId&gt;org.jfrog.maven.maven-plugin-anno&lt;/artifactId&gt;
    &lt;version&gt;1.4.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;plugin&gt;
      &lt;groupId&gt;org.bsc.maven&lt;/groupId&gt;
      &lt;artifactId&gt;maven-processor-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;process&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;process&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;!-- source output directory --&gt;
                  &lt;outputDirectory&gt;target/metamodel&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  
  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.3&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;add-source&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;add-source&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;sources&gt;
                      &lt;source&gt;target/metamodel&lt;/source&gt;
                  &lt;/sources&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I read posts in this forum, but they do not help.
  Can someone help me to make it? I am confused ( I need meta model for creating criteria)</p>
  
  <p>P.s. this link doesn't say how to make it: <a href="http://hibernate.org/orm/tooling/" rel="nofollow">http://hibernate.org/orm/tooling/</a>. I read a lot of info about it, but cannot figure it out...</p>