You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Tomáš Procházka <t....@centrum.cz> on 2009/11/17 21:46:27 UTC
separate package for ...Example classes
Hi.
It's possible change package where ...Example classes will be generated?
This will be great optional parameter for <javaModelGenerator> element.
I need put them to another package, because I developing ExtGWT application and model class are part of public API which will be compiled to JavaScript and Example classes doesn't.
I already write plugin which can generate model classes like extension of BaseModel class for ExtGWT library
And second question. It's possible add per table configuration to <table> element which will be accessible in plugins? I wont plugin which will be automatically generate constructor with fields which I choose.
--
Tomáš Procházka
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org
Re: separate package for ...Example classes
Posted by Jeff Butler <je...@gmail.com>.
You can change the example package with a plugin. The sample plugin
"RenameExampleClassPlugin" shows the technique (you should do it in
the "initialized" method of a plugin).
You can add <property> elements to <table> to specify table specific
properties. These properties can be accessed in a plugin
(IntrospectedTable.getTableConfigurationProperty(String), or
IntrospectedTable.getTableConfiguration().getProperties()).
Jeff Butler
2009/11/17 Tomáš Procházka <t....@centrum.cz>:
>
> Hi.
>
> It's possible change package where ...Example classes will be generated?
> This will be great optional parameter for <javaModelGenerator> element.
> I need put them to another package, because I developing ExtGWT application and model class are part of public API which will be compiled to JavaScript and Example classes doesn't.
> I already write plugin which can generate model classes like extension of BaseModel class for ExtGWT library
>
> And second question. It's possible add per table configuration to <table> element which will be accessible in plugins? I wont plugin which will be automatically generate constructor with fields which I choose.
>
> --
> Tomáš Procházka
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org