db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject generate object model into different packages
Date Wed, 13 Jul 2005 19:32:25 GMT




Hi,

I would like to add the possibility to generate different object classes
into different directories. The idea is as follows:

In the build.properties for the generator, the following properties can be
set:

torque.subpackage.bean=bean
torque.subpackage.peer=peer
torque.subpackage.object=object
torque.subpackage.map=mymap
torque.subpackage.manager=manager
torque.subpackage.base=base
torque.subpackage.base.bean=base.bean

So assuming that the targetPackage is org.apache.torque.test, the classes
would be generated to the following directories:
Objects into org.apache.torque.test.object
Peers into org.apache.torque.test.peer
Maps into org.apache.torque.test.mymap
Managers into org.apache.torque.test.manager
Beans into org.apache.torque.test.base
BasePeers, BaseObjects, BaseManagers into org.apache.torque.test.base
BaseBeans into org.apache.torque.test.base.bean

If the properties are not specified, the classes are generated where they
were generated in Torque 3.1:
Objects, Peers, Managers, BasePeers, BaseObjects, BaseManagers into the
targetPackage
Maps into targetPackage.map
Beans, BaseBeans into targetPackage.bean

(or does one want to change the default value for the base subpackage into
base ???)

It is not possible at the moment to generate the different Base Object
types into different directories, because they need access to protected
members of the respective other types.

Any objections, comments, suggestions ?

      Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message