You can write a plugin to change the package for every table. See the
source for the RenameExampleClass plugin for a good starting point.
Changing the source base is not possible with a plugin - you'll need to use
different contexts for that.
Jeff Butler
On Mon, Nov 12, 2012 at 3:59 PM, jdevelop <jdeve
...@gmail.com> wrote:
> Hello!
> Is it possible to specify different package (and different source
> base) for particular tables when generating model and client code?
> The database connection settings are the same for all tables.
> I have multi-module maven project, and some entities reside in
> different sub-modules.
> I found the only way - to specify different contexts for the tables,
> however this leads to duplication of jdbcConnection /
> javaModelGenerator / sqlMapGenerator with differences in few
> attributes.
> Perhaps there is some approach with less copy/paste implied?