ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashok Madhavan" <ashok.madha...@gmail.com>
Subject Abator enhancement
Date Wed, 01 Aug 2007 06:31:00 GMT
hi abator guys,

Abator has the concept of rootClass for the javaModelGenerator. Many of our
POJOs need to extend from a parent class. we use this feature. But abator
overrides all the methods in the parent class and i manually cleaned up
these methods in the generated pojo.

i had some free time and tweaked the abator source so that if the parent
class has a particular field, the pojo will not override it.
this is done by having hte <property> elements. The 'classPathEntry' will
lead to the jar file which must contain the rootClass.

    <javaModelGenerator targetPackage="xx.yy"  targetProject="Prject_Name" >
        <property name="rootClass" value="x.y.z.AbstractBaseDomain" />
        <property name="classPathEntry"
value="/eclipse_Workspace/Prject_Name/test.jar"/>
    </javaModelGenerator>

do you think that this is something which will be useful for the community.
If it is useful how should this be sent and obviously code-review etc.

regards
Ashok

Mime
View raw message