i don't understand the question...
I have some quesstion that i use hibernate code generation with oracle, type of INTEGER in oracle will be changed type of BigDecimal in generate coed.How to slove this quesstion.I want type of BigDecimal is int.
that is because the INTEGER type is bigger (or at least reported to be by the driver) than a java int.
Setup your reveng.xml to map the type/column to whatever type you want.
With regard to the integer, yes that was a problem and i have added the following to the reveng.xml file
<sql-type jdbc-type="DECIMAL" scale="0" hibernate-type="java.lang.Long"></sql-type>
The question i am asking is if there is any way to change the reveng.xml file to include the generation of the
@SequenceGenerator(name="TABLE_ID_SEQ",sequenceName="TABLE_ID_SEQ",allocationSize=1) annotation for each table
or a template example that i can use to generate these items.
you can use reveng.xml to configure the id generator for your tables.
if that is not flexible enough for you then try and implement the logic in a custom revengstrategy impl or simply tweak the hbm.ftl templates.
Note that i'm not sure if the annotation generation does ths correctly; so we might need to fix that.
let me know if you bump into problems there.
Thanks for the reponse. Is there any example of settting the reveng.xml file to generate the sequence. I am a newbie to java development. Any other pointers to information to help will be greatly appreciated.