You can update the originial freemarker templates to adapt to your requirements.
We did it as follows:
1) add an "allocation-size-50" meta attribute to our table's reveng entry:
<table name="Checklisteneintrag" >
<meta attribute="allocation-size-50"/>
<primary-key>
<generator class="sequence">
<param name="sequence_name">Checklisteneintrag_Seq</param>
</generator>
</primary-key>
</table>
2) get the original "Ejb3PropertyGetAnnotation.ftl" and adapt it to start with the following code:
<#if ejb3>
<#if pojo.hasIdentifierProperty()>
<#if property.equals(clazz.identifierProperty)>
<#if pojo.hasMetaAttribute("allocation-size-50")>
${pojo.generateAnnIdGenerator()?replace('@SequenceGenerator(', '@SequenceGenerator(allocationSize=50, initialValue=1, ')}
</#if>
<#if !pojo.hasMetaAttribute("allocation-size-50")>
${pojo.generateAnnIdGenerator()?replace('@SequenceGenerator(', '@SequenceGenerator(allocationSize=1, initialValue=1, ')}
</#if>
</#if>
</#if>
....
3) put all ftl files (the original ones and the one that was adapted) into a directory that can be found by reverse engineering, e.g. in maven we reference the templatepath="src/hibernate/resources/templates" as follows:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution> <!-- set MAVEN_OPTS="-Dfile.encoding=UTF-8" && mvn antrun:run@hbm2java -->
<id>hbm2java</id>
<phase>none</phase>
<configuration>
<target>
<echo message="Start generating entities .." />
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" />
<hibernatetool templatepath="src/hibernate/resources/templates">
<classpath>
<path location="${project.build.directory}/classes" />
<path location="${project.basedir}/src/hibernate/resources" />
</classpath>
<!-- Note that configurationfile does not work anymore in Hibernate
5.4.0 -->
<jdbcconfiguration propertyfile="src/hibernate/resources/hibernate.properties" revengfile="src/hibernate/resources/hibernate.reveng.xml" reversestrategy="at.rsg.lp.flow.hibernate.FlowRevEngStrategy" packagename="at.rsg.lp.flow.services.jpa.model" detectmanytomany="true" />
<!-- jdbcconfiguration configurationfile="src/hibernate/resources/hibernate.cfg.xml"
revengfile="src/hibernate/resources/hibernate.reveng.xml" reversestrategy="at.rsg.lp.flow.hibernate.FlowRevEngStrategy"
packagename="at.rsg.lp.flow.services.impl.jpa" detectmanytomany="true"
/ -->
<hbm2java destdir="src/main/java" jdk5="true" ejb3="true" />
</hibernatetool>
<echo message="End generating entities" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>