Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Specify unique package name for different table
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jdevelop  
View profile  
 More options Nov 12 2012, 3:59 pm
From: jdevelop <jdeve...@gmail.com>
Date: Mon, 12 Nov 2012 12:59:16 -0800 (PST)
Local: Mon, Nov 12 2012 3:59 pm
Subject: Specify unique package name for different table
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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Hill  
View profile  
 More options Nov 12 2012, 9:22 pm
From: Steve Hill <sh...@futurelogix.co.uk>
Date: Mon, 12 Nov 2012 21:22:12 -0500
Local: Mon, Nov 12 2012 9:22 pm
Subject: Re: Specify unique package name for different table
Hi,

That is exactly how we did it.  The jdbc connection etc is defined by properties so we did not think it was a big deal to have multiple context elements.

Thanks!
Steve.

Sent from my iPhone

On Nov 12, 2012, at 3:59 PM, jdevelop <jdeve...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Butler  
View profile  
 More options Nov 12 2012, 9:28 pm
From: Jeff Butler <jeffgbut...@gmail.com>
Date: Mon, 12 Nov 2012 21:28:06 -0500
Local: Mon, Nov 12 2012 9:28 pm
Subject: Re: Specify unique package name for different table

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »