I create domain classes with annotations from my Oracle database. To control sequence generation I have added the following entry to the hibernate.reveng.xml:
Code:
...
<primary-key>
<generator class="sequence">
<param name="sequence">SEQ_USERROLEMAP_ID</param>
</generator>
</primary-key>
...
This results in the following annotation:
Code:
@SequenceGenerator(name = "generator", sequenceName = "SEQ_USERROLEMAP_ID")
However I need to set the "allocationSize" like this:
Code:
@SequenceGenerator(name = "generator", sequenceName = "SEQ_USERROLEMAP_ID", allocationSize = 1)
Is it possible to set this somehow in the hibernate.reveng.xml.