Menu

package for each Table like in version 1.0.9

Help
2004-02-03
2013-04-25
  • cyril cherin

    cyril cherin - 2004-02-03

    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...

     
    • nr

      nr - 2004-02-27

      All is possible, the question is whether it is really useful.

      Why would you need that really?

       
    • ioly

      ioly - 2004-02-28

      En, you can make it by yourself.

       
    • Florent Ramiere

      Florent Ramiere - 2004-06-16

      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

       
    • Garth Patil

      Garth Patil - 2005-10-17

      Did this ever get integrated into the code in CVS?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.