hi,

I am very sorry, the version of the last patch had an error :)  (you can never do 
enough tests!) I corrected the failure and tested again. So please use my version 2.

previous message :
=============
Please review and check in this patch of the templates used to create the java class 
files for OJB. The base path for the patch is src/templates/ojb/model, the patch 
contains no directory information.

description:
------------
*) code to take referrers and foreign keys into account has been added. 
    -  For every referrer, a member variable of type java.util.Vector is created along 
with apropriate get/set methods. 
    -  For every referenced foreign table, a member variable of the foreign table's 
object type is being created, again along with proper get/set methods. 
    -  The foreign key itself is being ignored in the list of member variables.
    -  The necessary object files of the foreign tables and the java Vector are 
imported.

*) added the base class to the import section.
*) added a file containing the header for the target class files, to easily adapt it. 
The default header contains the Apache license.
   !!! A new property "OJBModelFileHeader"  has been introduced, that defines the file 
name of the header.
*) added some CVS tags
-------------


Sorry guys, but I did not find a file to add the new property to. Neither 
"default.properties", "project.properties", "src/conf/build.properties", nor any of 
the "Torque.properties" seemed to be the right place for it. I added it to my 
project's build.properties.
 
*) introduced a new property "OJBModelFileHeader" to define the file containing the 
header for all OJB model class files when them. Mind that the file must be relative to 
the templates base path which usually is src/templates. Velocity's security denies 
access to files outside the template base path. Default value is: 
"ojb/model/FileHeader.vm"

best regards
   Niki

Attachment: torque_template_ojb_model.2002-07-31_2.diff.gz
Description: Macintosh archive

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to