This is developped, it will be released in a new version of sql2java
here is an example of the property to be used
#-----------------------------------------------
# (6/7) HOW DO YOU WANT YOUR PACKAGES ?
#-----------------------------------------------
# if you set mgrwriter.package=sql2java.sample.database and package.extended=true
# the generate code for the USER table will be in the package sql2java.sample.database.user
#
# if you set mgrwriter.package=sql2java.sample.database and package.extended=false
# the generate code for the USER table will be in the package sql2java.sample.database
#
# we recommand to set package.extended=true for readibility
package.extended=true
# if you have many tables, you have probably set package.extended=true
# but this is not enough for you as there is really a lot of tables
# you would like to have some more demarcation between tables
# you can define for each table the subpackage you want it to be generated
#
# let's suppose you have defined mgrwriter.package=sql2java.sample.database,
# package.extended=true, subpackage.mail_message=mail, subpackage.mail_attachment=mail,
# subpackage.user=user, subpackage.authorization=user
# then the resulting packages will be the following
# sql2java.sample.database.mail.mailmessage for the mail_message table
# sql2java.sample.database.mail.mailattachment for mail_attachment table
# sql2java.sample.database.user.user for user table
# sql2java.sample.database.user.authorization for authorization table
subpackage.customer=users
subpackage.shipper=users
subpackage.product=products
subpackage.manufacturer=products
subpackage.delivery=products
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is possible to generate source code in a differente pakage for each table like in version 1.09 ?
Like this :
for table "destination" a "desination" package
for table "habilitation" a "habilitation" package...
All is possible, the question is whether it is really useful.
Why would you need that really?
En, you can make it by yourself.
This is developped, it will be released in a new version of sql2java
here is an example of the property to be used
#-----------------------------------------------
# (6/7) HOW DO YOU WANT YOUR PACKAGES ?
#-----------------------------------------------
# if you set mgrwriter.package=sql2java.sample.database and package.extended=true
# the generate code for the USER table will be in the package sql2java.sample.database.user
#
# if you set mgrwriter.package=sql2java.sample.database and package.extended=false
# the generate code for the USER table will be in the package sql2java.sample.database
#
# we recommand to set package.extended=true for readibility
package.extended=true
# if you have many tables, you have probably set package.extended=true
# but this is not enough for you as there is really a lot of tables
# you would like to have some more demarcation between tables
# you can define for each table the subpackage you want it to be generated
#
# let's suppose you have defined mgrwriter.package=sql2java.sample.database,
# package.extended=true, subpackage.mail_message=mail, subpackage.mail_attachment=mail,
# subpackage.user=user, subpackage.authorization=user
# then the resulting packages will be the following
# sql2java.sample.database.mail.mailmessage for the mail_message table
# sql2java.sample.database.mail.mailattachment for mail_attachment table
# sql2java.sample.database.user.user for user table
# sql2java.sample.database.user.authorization for authorization table
subpackage.customer=users
subpackage.shipper=users
subpackage.product=products
subpackage.manufacturer=products
subpackage.delivery=products
Did this ever get integrated into the code in CVS?