source: pro-violet-viettel/sourcecode/api.violet.vn/www/plugins/sfPropel13Plugin/lib/vendor/propel-generator/build.properties-sample

Last change on this file was 289, checked in by dungnv, 11 years ago
File size: 6.9 KB
Line 
1# -------------------------------------------------------------------
2#
3# P R O P E L  C O N F I G U R A T I O N  F I L E
4#
5# -------------------------------------------------------------------
6# This file contains some example properties.  Ideally properties
7# should be specified in the project-specific build.properties file;
8# however, this file can be used to specify non-default properties
9# that you would like to use accross all of your Propel projects.
10# -------------------------------------------------------------------
11#
12
13propel.home = .
14
15# -------------------------------------------------------------------
16#
17#  P R O J E C T
18#
19# -------------------------------------------------------------------
20# This is the name of your Propel project. The name of your Propel
21# project is used (by default) to determine where the generator will
22# find needed configuration files and will place resuilting build
23# files. E.g. if your project is named 'killerapp', Propel will
24# look here for schema.xml and runtime-conf.xml files:
25#
26#   projects/killerapp/
27#
28# -------------------------------------------------------------------
29
30# You can set this here, but it's preferrable to set this in a
31# project-specific build.properties file.
32#
33# propel.project = bookstore
34
35# -------------------------------------------------------------------
36#
37#  T A R G E T  D A T A B A S E
38#
39# -------------------------------------------------------------------
40# This is the target database, only considered when generating
41# the SQL for your Propel project. Your possible choices are:
42#
43#   mssql, mysql, oracle, pgsql, sqlite
44# -------------------------------------------------------------------
45
46# You can set this here, but it's preferrable to set this in a
47# project-specific build.properties file.
48#
49# propel.database = mysql
50
51# -------------------------------------------------------------------
52#
53#  O B J E C T  M O D E L  I N F O R M A T I O N
54#
55# -------------------------------------------------------------------
56# These settings will allow you to customize the way your
57# Peer-based object model is created.
58# -------------------------------------------------------------------
59# addGenericAccessors
60#   If true, Propel adds methods to get database fields by name/position.
61#
62# addGenericMutators
63#   If true, Propel adds methods to set database fields by name/position.
64#
65# addSaveMethod
66#   If true, Propel adds tracking code to determine how to save objects.
67#
68# addTimeStamp
69#   If true, Propel true puts time stamps in phpdoc of generated om files.
70#
71# basePrefix
72#   A string to pre-pend to the file names of base data and peer objects.
73#
74# complexObjectModel
75#   If true, Propel generates data objects with collection support and
76#   methods to easily retreive foreign key relationships.
77#
78# targetPackage
79#   Sets the PHP "package" the om files will generated to, e.g.
80#   "com.company.project.om".
81#
82# targetPlatform
83#   Sets whether Propel is building classes for php5 (default)
84#   or php4 (experimental).
85#
86# packageObjectModel
87#   Sets whether Propel is packaging ObjectModel fro several
88#   [package].schema.xml files. The <database package="packageName">
89#   attribute has to be set then. (warning: this is experimental!)
90#
91# -------------------------------------------------------------------
92
93# classes will be put in (and  included from) this directory
94# e.g. if package is "bookstore" then om will expect include('bookstore/Book.php'); to work.
95# use dot-path notation -- e.g. my.bookstore -> my/bookstore.
96#
97propel.targetPackage = ${propel.project}
98
99propel.addGenericAccessors = false
100propel.addGenericMutators = false
101propel.addSaveMethod = true
102propel.addTimeStamp = true
103propel.basePrefix = Base
104propel.complexObjectModel = true
105propel.targetPlatform = php5
106propel.packageObjectModel = false
107
108# -------------------------------------------------------------------
109#
110#  D B   C O N N E C T I O N   S E T T I N G S
111#
112# -------------------------------------------------------------------
113# Creole connection settings. These connection settings are used by
114# build tagets that perform database operations (e.g. 'insert-sql',
115# 'creole').
116#
117# You can set them here, but it's preferrable to set these properties
118# in a project-specific build.properties file.
119#
120
121# If you want to use a custom driver, specify it below, otherwise
122# leave it blank or comment it out to use Creole stock driver.
123#
124# propel.database.driver = creole.drivers.sqlite.SQLiteConnection
125
126# Note that if you do not wish to specify the database (e.g. if you
127# are using multiple databses) you can use the @DB@ token which
128# will be replaced with a database at runtime.
129#
130# propel.database.url = mysql://root@localhost/bookstore
131
132# For MySQL or Oracle, you also need to specify username & password
133# propel.database.user = [db username]
134# propel.database.password = [db password]
135
136# Use the URL below to specify a DSN to used to create the database.
137# Note that this URL should not contain the database name, as you will
138# get an error if the database does not exist.
139# (This does not apply to SQLite since the databse is automatically created
140# when the connection is made -- if it does not already exist.)
141#
142# propel.database.createUrl = mysql://root@localhost/
143
144
145# -------------------------------------------------------------------
146#
147# C R E O L E  TO  X M L
148#
149# -------------------------------------------------------------------
150# These settings only applies to the 'creole' target. 
151# -------------------------------------------------------------------
152#
153# samePhpName
154#   If true, the Creole task will set the phpName attribute for the
155#   tables and columns to be the same as SQL name.
156#
157# addVendorInfo
158#   If true, the Creole task will add vendor specific information
159#   to the database schema
160#
161# addValidators
162#   Bitfield like option to turn on/off addition of Validator and
163#   Rule tags to the schema. Uses a boolean syntax like in php.ini.
164#   Allowed tokens are:
165#      none       add no validators)
166#      all        add all validators)
167#      maxlength  add maxlengths for string type columns)
168#      maxvalue   add maxvalue for numeric columns)
169#      type       add notmatch validators for numeric columns)
170#      required   add required validators for required columns)
171#      unique     add unique validators for unique indexes)
172#   Allowed operators are:
173#      &          bitwise AND
174#      |          bitwise OR
175#      ~          bitwise NOT
176#
177# -------------------------------------------------------------------
178
179# propel.samePhpName = false
180# propel.addVendorInfo=true
181# propel.addValidators=none
182
183
184# -------------------------------------------------------------------
185#
186#  D A T A B A S E   B U I L D   C O N F I G
187#
188# -------------------------------------------------------------------
189# Some databases provide some configuration options that can be set
190# in this script. 
191#
192# === MySQL
193# propel.mysql.tableType
194#   Use this property to set the table type of generated tables (e.g. InnoDB, MyISAM).
Note: See TracBrowser for help on using the repository browser.