stephenh 2002/07/27 23:33:43 Modified: src/conf build.properties Log: Updated to new torque.* properties. Changed comments organization. Removed typically unused properties to reduce clutter and instead refer to the properties-reference.html doc. Revision Changes Path 1.17 +79 -120 jakarta-turbine-torque/src/conf/build.properties Index: build.properties =================================================================== RCS file: /home/cvs/jakarta-turbine-torque/src/conf/build.properties,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- build.properties 24 Jun 2002 19:56:03 -0000 1.16 +++ build.properties 28 Jul 2002 06:33:43 -0000 1.17 @@ -3,28 +3,30 @@ # T O R Q U E C O N F I G U R A T I O N F I L E # # ------------------------------------------------------------------- +# This file contains the most commonly used properties. For a +# a complete list of build properties, please refer to: +# http://jakarta.apache.org/turbine/torque/properties-reference.xml +# ------------------------------------------------------------------- + # ------------------------------------------------------------------- # -# T U R B I N E P R O J E C T +# P R O J E C T # # ------------------------------------------------------------------- -# This is the name of your Turbine project. Your generated sources -# will be named using the project name selected below. If your +# This is the name of your Torque project. Your non-Java generated +# files will be named using the project name selected below. If your # project=killerapp then you will have a generated: # -# killerapp-schema.sql -# -# IMPORTANT! -# This means that your project schema MUST be named -# killerapp-schema.xml and it MUST be placed in the -# schema directory for Torque to work property. +# killerapp-schema.sql # -# The object model sources generated are independent of -# the project name selected. +# The custom is then to also rename your project XML schema from +# project-schema.xml to killerapp-schema.xml. This is required +# for a few targets such as datasql, datadump, and datadtd. # ------------------------------------------------------------------- -project = bookstore +torque.project = bookstore + # ------------------------------------------------------------------- # @@ -32,20 +34,14 @@ # # ------------------------------------------------------------------- # This is the target database, only considered when generating -# the SQL for your Turbine project. Your possible choices are -# -# db2 -# db2400 -# hypersonic -# mysql -# oracle -# postgresql -# mssql +# the SQL for your Turbine project. Your possible choices are: # -# Default: none +# axion, cloudscape, db2, db2400, hypersonic, interbase, mssql, +# mysql, oracle, postgresql, sapdb, sybase # ------------------------------------------------------------------- -database = postgresql +torque.database = postgresql + # ------------------------------------------------------------------- # @@ -55,37 +51,57 @@ # These settings will allow you to customize the way your # Peer-based object model is created. # ------------------------------------------------------------------- -# addSaveMethod=true adds tracking code to determine how to save objects -# -# addGetByNameMethod=true adds methods to get fields by name/position -# -# complexObjectModel=true generates an om with collection support -# -# addTimeStamp=true puts time stamps in generated files -# -# addIntakeRetrievable=implement Intake's Retrievable interface -# -# useManagers=Generate Manager classes that use JCS for caching. Still -# considered experimental. -# -# useClasspath=true uses Velocity's classpath loader to retrieve the templates -# from the classpath instead of off the hard drive. +# addGetByNameMethod +# If true, Torque adds methods to get database fields by name/position. # -# overloadKeySetters=false prevents overloading of the setter method for -# primary/foreign keys. This is useful when working with broken -# JavaBean implementations. -# ------------------------------------------------------------------- +# addIntakeRetrievable +# If true, the data objects will implement Intake's Retrievable +# interface +# +# addSaveMethod +# If true, Torque adds tracking code to determine how to save objects. +# +# addTimeStamp +# If true, Torque true puts time stamps in generated om files. +# +# basePrefix +# A string to pre-pend to the file names of base data and peer objects. +# +# complexObjectModel +# If true, Torque generates data objects with collection support and +# methods to easily retreive foreign key relationships. +# +# overloadKeySetters +# If false, this prevents overloading of the setter method for +# primary/foreign keys. This is useful when working with broken +# JavaBean implementations. +# +# targetPackage +# Sets the Java package the om files will generated to, e.g. +# "com.company.project.om". +# +# useClasspath +# If true, Torque will not look in the <code>templatePath</code> directory, +# for templates, but instead load them from the classpath, allowing you to +# use Torque without extracted it from the jar. +# +# useManagers +# If true, Torque will generate Manager classes that use JCS for caching. +# Still considered experimental. +# ------------------------------------------------------------------- + +torque.targetPackage = org.apache.torque + +torque.addGetByNameMethod = true +torque.addIntakeRetrievable = false +torque.addSaveMethod = true +torque.addTimeStamp = true +torque.basePrefix = Base +torque.complexObjectModel = true +torque.overloadKeySetters = true +torque.useClasspath = false +torque.useManagers = false -targetPackage=org.apache.torque -basePrefix=Base -addSaveMethod=true -addGetByNameMethod=true -complexObjectModel=true -addTimeStamp=true -addIntakeRetrievable=false -useManagers=false -overloadKeySetters=true -useClasspath=false # ------------------------------------------------------------------- # @@ -96,75 +112,18 @@ # will create an XML database schema from JDBC metadata. These # settings are also used by the SQL Ant task to initialize your # Turbine system with the generated SQL. -# ------------------------------------------------------------------- - -createDatabaseUrl = jdbc:postgresql://127.0.0.1:5432/template1 -buildDatabaseUrl = jdbc:postgresql://127.0.0.1:5432/bookstore -databaseUrl = jdbc:postgresql://127.0.0.1:5432/bookstore -databaseDriver = org.postgresql.Driver -databaseUser = jvanzyl -databasePassword = -databaseHost = 127.0.0.1 - -# Tells JDBC task that javaName attribute for the tables and columns -# should be made same as SQL name. -sameJavaName=false - -# ------------------------------------------------------------------- -# -# D O C U M E N T A T I O N S E T T I N G S -# -# ------------------------------------------------------------------- -# These settings will allow you to customize the way your schema -# documentation is created. -# Valid formats are: html, anakia (for use with jakarta-site2) -# ------------------------------------------------------------------- -documentationFormat=html - -# ------------------------------------------------------------------- -# You should NOT have to edit anything below here. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------------- -# The values for the ID_TABLE_ID column in the ID_TABLE start -# at 101 for tables used in projects. -# ------------------------------------------------------------------------- -initialID = 101 - -# ------------------------------------------------------------------- -# -# T E M P L A T E P A T H -# -# ------------------------------------------------------------------- - -templatePath = templates - -# ------------------------------------------------------------------- -# -# C O N T R O L T E M P L A T E S # +# sameJavaName +# If true, the JDBC task will set the javaName attribute for the tables +# and columns to be the same as SQL name. # ------------------------------------------------------------------- -SQLControlTemplate = sql/base/Control.vm -OMControlTemplate = om/Control.vm -idTableControlTemplate = sql/id-table/Control.vm -DataDTDControlTemplate = data/Control.vm -DataDumpControlTemplate = data/dump/Control.vm -DataSQLControlTemplate = sql/load/Control.vm -DocControlTemplate = doc/Control.vm - -# ------------------------------------------------------------------- -# -# O U T P U T D I R E C T O R Y -# -# ------------------------------------------------------------------- - -outputDirectory=src - -# ------------------------------------------------------------------- -# -# S C H E M A D I R E C T O R Y -# -# ------------------------------------------------------------------- +torque.database.createUrl = jdbc:postgresql://127.0.0.1:5432/template1 +torque.database.buildUrl = jdbc:postgresql://127.0.0.1:5432/bookstore +torque.database.url = jdbc:postgresql://127.0.0.1:5432/bookstore +torque.database.driver = org.postgresql.Driver +torque.database.user = jvanzyl +torque.database.password = +torque.database.host = 127.0.0.1 -schemaDirectory=schema +torque.sameJavaName = false
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
