I created a small set of instructions that helped me get started using 
torque with M.E.T.A. Maybe this will help you

-----------------------------------------------------------------------
Creating a new application with META (Maven Environment for Turbine 
Appliations)

Inplace development mode::

1. Install your servlet container and create a build.properties file in 
your home directory.

----------------------------------------------------------------------------
    #
    # build.properties - for META
    #

    #
    # Application Server configuration
    #
    maven.appserver.home = <directory_for_appserver_home>
    maven.appserver.name = tomcat

    #
    # app config
    #
    turbine.app.name = <appname>
    turbine.app.flavor=turbine-2.3.1

    #
    # create the om layer interfaces for torque
    #
    turbine.app.om.layer=torque

    #
    # don't create demo pages
    #
    turbine.app.setup.demo=false

    #
    # Inplace dev mode
    #
    turbine.plugin.mode=inplace

    #
    # Initial ID values for the ID_TABLE
    #
    initialID = 1100
    initialIDValue = 100
    initialIDStep = 10

    #
    # database settings
    #
    torque.database=mysql
    torque.database.driver = com.mysql.jdbc.Driver
    torque.database.user = myuser
    torque.database.password = mypassword
    torque.database.buildUrl = jdbc:mysql://localhost/<appname>
    torque.database.createUrl = jdbc:mysql://localhost/<appname>

----------------------------------------------------------------------------

2. change to the webapps directory of your servlet container.
3. Create the skeleton for the app

    % maven -Dturbine.setup.properties=~/build.properties turbine:setup

4. change into your webapps/<newapp> directory

5. modify the <appname>-schema.xml accordingly (found in 
   src/schema/<appname>-schema.xml)

6. Create SQL (all commands run from webapps/<appname> directory

    1. create the database
    % maven torque:create-db

    2. generate SQL code
    % maven turbine:sql

    3. put SQL in database
    % maven torque:insert-sql

7. Compile your application

    % maven java:compile

no need to deploy since we are inplace development mode

-----------------------------------------------------------------------



-- 
Jeffery Painter
    2431 Reunion Meadows Lane
    Apex, NC 27539
    voice: 919.321.0378

- --
[EMAIL PROTECTED]                http://jeff.kiasoft.com
PGP FP: 9CE8 83A2 33FA 32B1 0AB1  4E62 E4CB E4DA 5913 EFBC

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/qEQE5Mvk2lkT77wRAnMJAJ9vJ6qOkg/mvqqIpz7troCEQJ8bFACglu/U
YNXabx7DZOV2Hd9LwSTmGpY=
=dWiu
-----END PGP SIGNATURE-----

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

Reply via email to