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 Re: Abator enhancement
Date Wed, 01 Aug 2007 16:28:22 GMT
thanks Jeff. i will send it out tonight or tomorrow.

regards
ashok

On 8/1/07, Jeff Butler <jeffgbutler@gmail.com> wrote:
>
> This sounds interesting.  I assume this is primarily a patch to one of the
> JavaModelGenerator implementations.  If you add the patch to a JIRA
> enhancement request, I'll take a look at it.
>
> Jeff Butler
>
>
> On 8/1/07, Ashok Madhavan <ashok.madhavan@gmail.com> wrote:
> >
> > 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