title: What's the easiest way to amend the file name of pojos during hbm2java generation
body: <p>I'm using hbm2java via maven to generate pojos, it will produce files such as Table.java, but what I want is AbstractTable.java</p>
  
  <p>Is there an easy way to do this?</p>
  
  <p>From my pom.xml:</p>
  
  <pre><code>     &lt;plugin&gt;
  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate3-maven-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.2&lt;/version&gt;
  &lt;executions&gt;
      &lt;execution&gt;
          &lt;id&gt;hbm2hbmxml&lt;/id&gt;
          &lt;phase&gt;generate-sources&lt;/phase&gt;
          &lt;goals&gt;
              &lt;goal&gt;hbm2hbmxml&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
              &lt;components&gt;
                  &lt;component&gt;
                      &lt;name&gt;hbm2hbmxml&lt;/name&gt;
                      &lt;outputDirectory&gt;src/main&lt;/outputDirectory&gt;
                  &lt;/component&gt;
              &lt;/components&gt;
     &lt;componentProperties&gt;
      &lt;revengfile&gt;src/conf/reveng.xml&lt;/revengfile&gt;
      &lt;propertyfile&gt;src/conf/hibernate.properties&lt;/propertyfile&gt;
      &lt;templatepath&gt;src/conf/hibernate-templates&lt;/templatepath&gt;
      &lt;jdk5&gt;true&lt;/jdk5&gt;
     &lt;/componentProperties&gt;
          &lt;/configuration&gt;
      &lt;/execution&gt;
      &lt;execution&gt;
          &lt;id&gt;hbm2cfgxml&lt;/id&gt;
          &lt;phase&gt;generate-sources&lt;/phase&gt;
          &lt;goals&gt;
              &lt;goal&gt;hbm2cfgxml&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
              &lt;components&gt;
                  &lt;component&gt;
                      &lt;name&gt;hbm2cfgxml&lt;/name&gt;
                      &lt;outputDirectory&gt;src/main&lt;/outputDirectory&gt;
                  &lt;/component&gt;
              &lt;/components&gt;
     &lt;componentProperties&gt;
      &lt;revengfile&gt;src/conf/reveng.xml&lt;/revengfile&gt;
      &lt;propertyfile&gt;src/conf/hibernate.properties&lt;/propertyfile&gt;
      &lt;templatepath&gt;src/conf/hibernate-templates&lt;/templatepath&gt;
      &lt;jdk5&gt;true&lt;/jdk5&gt;
     &lt;/componentProperties&gt;
          &lt;/configuration&gt;
      &lt;/execution&gt;
      &lt;execution&gt;
          &lt;id&gt;hbm2java&lt;/id&gt;
          &lt;phase&gt;generate-sources&lt;/phase&gt;
          &lt;goals&gt;
              &lt;goal&gt;hbm2java&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
              &lt;components&gt;
                  &lt;component&gt;
                      &lt;name&gt;hbm2java&lt;/name&gt;
                      &lt;outputDirectory&gt;src/main&lt;/outputDirectory&gt;
                  &lt;/component&gt;
              &lt;/components&gt;
     &lt;componentProperties&gt;
      &lt;revengfile&gt;src/conf/reveng.xml&lt;/revengfile&gt;
      &lt;propertyfile&gt;src/conf/hibernate.properties&lt;/propertyfile&gt;
      &lt;templatepath&gt;src/conf/hibernate-templates&lt;/templatepath&gt;
      &lt;jdk5&gt;true&lt;/jdk5&gt;
      &lt;namingstrategy&gt;uk.co.company.product.hibernate.CustomNamingStrategy&lt;/namingstrategy&gt;
     &lt;/componentProperties&gt;
          &lt;/configuration&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;dependencies&gt;
   &lt;dependency&gt;
    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;hibernate-tools&lt;/artifactId&gt;
    &lt;version&gt;3.2.3.GA&lt;/version&gt;
   &lt;/dependency&gt;
   &lt;dependency&gt;
       &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
       &lt;artifactId&gt;hibernate3-maven-plugin&lt;/artifactId&gt;
       &lt;version&gt;2.2&lt;/version&gt;
   &lt;/dependency&gt;
               &lt;dependency&gt;
                   &lt;groupId&gt;mysql&lt;/groupId&gt;
                   &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
                   &lt;version&gt;5.0.8&lt;/version&gt;
               &lt;/dependency&gt;
               &lt;dependency&gt;
                   &lt;groupId&gt;cglib&lt;/groupId&gt;
                   &lt;artifactId&gt;cglib-nodep&lt;/artifactId&gt;
                   &lt;version&gt;2.1_3&lt;/version&gt;
               &lt;/dependency&gt;
  &lt;/dependencies&gt;
       &lt;/plugin&gt;
  </code></pre>