# Copyright 2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ------------------------------------------------------------------- # # T O R Q U E C O N F I G U R A T I O N F I L E # # ------------------------------------------------------------------- # ------------------------------------------------------------------- # # T U R B I N E 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 # 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. # # The object model sources generated are independent of # the project name selected. # ------------------------------------------------------------------- torque.project=dbpsml torque.targetPackage=org.apache.jetspeed.om.dbpsml # ------------------------------------------------------------------- # # T A R G E T D A T A B A S E # # ------------------------------------------------------------------- # This is the target database, only considered when generating # the SQL for your Turbine project. Your possible choices are # # db2 # hypersonic # mysql # oracle # postgresql # mssql # sybase # # Default: none # ------------------------------------------------------------------- torque.database=hypersonic ### torque.database=mysql ### torque.database=oracle ### torque.database=mssql # ------------------------------------------------------------------- # # O B J E C T M O D E L I N F O R M A T I O N # # ------------------------------------------------------------------- # 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 # ------------------------------------------------------------------- torque.addSaveMethod=true torque.addGetByNameMethod=true torque.complexObjectModel=true torque.basePrefix=Base torque.addTimeStamp=true torque.addIntakeRetrievable=false # ------------------------------------------------------------------- # Generate Manager classes that use JCS for caching. This is still # considered experimental. # ------------------------------------------------------------------- torque.useManagers=false torque.useClasspath = true # ------------------------------------------------------------------- # # D A T A B A S E S E T T I N G S # # ------------------------------------------------------------------- # JDBC connection settings. This is used by the JDBCToXML task that # 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. # ------------------------------------------------------------------- # torque.database.createUrl = jdbc:postgresql://127.0.0.1:5432/template1 # torque.databaseUrl = jdbc:mysql://127.0.0.1/turbine # torque.databaseUrl = jdbc:oracle:thin@bluesun2:1521:radiohead" # torque.databaseUrl = jdbc:cloudscape:d:/bsdev/dbs/bluedb torque.databaseUrl = jdbc:HypersonicSQL:${webapp.dir}/WEB-INF/db/jetspeed # torque.databaseDriver = org.gjt.mm.mysql.Driver # torque.databaseDriver = oracle.jdbc.driver.OracleDriver # torque.databaseDriver = COM.cloudscape.coreJDBCDriver torque.databaseDriver=org.hsql.jdbcDriver torque.databaseUser = sa torque.databasePassword = torque.databaseHost = localhost # Tells JDBC task that javaName attribute for the tables and columns # should be made same as SQL name. torque.sameJavaName=false # ------------------------------------------------------------------- # # D O C U M E N T A T I O 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. # ------------------------------------------------------------------- # ------------------------------------------------------------------- # # C O N F I G U R A T I O N D I R E C T O R Y # # ------------------------------------------------------------------- # This is the directory that Torque looks in the find # its torque.props file. # # Default: none # ------------------------------------------------------------------- configDir=./config # ------------------------------------------------------------------- # # T E M P L A T E P A T H # # ------------------------------------------------------------------- # this should be blank - but torque does not fully support using templates via classpath templatePath = templates.scratch # ------------------------------------------------------------------- # # 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 # # ------------------------------------------------------------------- schemaDirectory=schema torque.schema.sql.includes = dbpsml-schema.xml torque.schema.create-db.includes = dbpsml-schema.xml torque.schema.init-sql.includes = dbpsml-schema.xml torque.schema.om.includes = dbpsml-schema.xml