RE: AW: Need a sample Torque application

2006-10-17 Thread Greg Monroe
Here's the basics for this step...

Before running "maven torque" in project directory:

project
|   project.properties
|
+---src
+---java
+---schema
bookstore-schema.xml
id-table-schema.xml

After running "maven torque" project directory:

project
|   project.properties
|   velocity.log
|
+---src
|   +---java
|   |   |   report.bookstore.om.generation
|   |   |
|   |   +---my
|   |   |   +---torque
|   |   |   +---om
|   |   |   |   Author.java
|   |   |   |   AuthorPeer.java
|   |   |   |   BaseAuthor.java
|   |   |   |   BaseAuthorPeer.java
|   |   |   |   BaseBook.java
|   |   |   |   BaseBookPeer.java
|   |   |   |   BasePublisher.java
|   |   |   |   BasePublisherPeer.java
|   |   |   |   Book.java
|   |   |   |   BookPeer.java
|   |   |   |   Publisher.java
|   |   |   |   PublisherPeer.java
|   |   |   |
|   |   |   +---map
|   |   |   AuthorMapBuilder.java
|   |   |   BookMapBuilder.java
|   |   |   BookstoreMapInit.java
|   |   |   PublisherMapBuilder.java
|   |   |
|   |   +---org
|   |   +---apache
|   |   +---torque
|   |   +---linkage
|   |   BookstoreMapInit.java
|   |
|   +---schema
|   bookstore-schema.xml
|   id-table-schema.xml
|
+---target
+---sql
bookstore-schema.sql
id-table-schema.sql
report.bookstore.sql.generation
sqldb.map

project.properties:
==
# The name of the project Torque will generate code for.
torque.project = bookstore

# The target database platform.
torque.database = mssql

# The target package to put the generated classes in.
torque.targetPackage = my.torque.om

# The JDBC URL that Torque can use to create and
# drop databases if instructed to do so.
torque.database.createUrl = jdbc:mysql://127.0.0.1/mysql

# The JDBC URL that will be used to create tables in your database.
torque.database.buildUrl = jdbc:mysql://127.0.0.1/bookstore

# The JDBC URL that will be used to access your database.
torque.database.url = jdbc:mysql://127.0.0.1/bookstore

# The JDBC database driver to use when connecting to your database.
torque.database.driver = org.gjt.mm.mysql.Driver

# The administrative username that has sufficient privileges to create
# and drop databases and tables that Torque executes at generation time.
torque.database.user = adminuser

# The administrative password for the supplied username.
torque.database.password = adminpassword
===

Contents of bookstore-schema.xml
===
http://db.apache.org/torque/dtd/database_3_2.dtd";>



  


  
  



  
  






  


  

  



Contents of id-table-schema.xml

http://db.apache.org/torque/dtd/database_3_2.dtd";>


  





  

  
 
===
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 17, 2006 8:55 AM
> To: Apache Torque Users List
> Subject: Re: AW: Need a sample Torque application
> 
> Hi,
> 
> I have configured them. There is no error in Maven. I am 
> following the Torque tutorial provided by Apache torque website. 
> 
> According to the tutorial, we get database mapping classes 
> created by the torque. Refer: 
> http://db.apache.org/torque/releases/torque-3.2/tutorial/step3.html
> 
> But its not creating expected classes in my case. Instead of 
> that it is creating few Turbine classes inside src/java directory. 
> 
> Hence, I need a sample working Torque application.
> 
> If you have it, kindly forward it to me.
> 
> Thanks.
> regards,
> 
> Anand
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Duke CE Privacy Statement
Please be advised that this e-mail and any files transmitted with it are 
confidential communication or may otherwise be privileged or confidential and 
are intended solely for the individual or entity to whom they are addressed.  
If you are not the intended recipient you may not rely on the contents of this 
email or any attachments, and we ask that you  please not read, copy or 
retransmit this communication, but reply to the sender and destroy the email, 
its conten

Re: AW: Need a sample Torque application

2006-10-17 Thread anand.kulkarni
Hi,

I have configured them. There is no error in Maven. I am following the Torque 
tutorial provided by Apache torque website. 

According to the tutorial, we get database mapping classes created by the 
torque. Refer: 
http://db.apache.org/torque/releases/torque-3.2/tutorial/step3.html

But its not creating expected classes in my case. Instead of that it is 
creating few Turbine classes inside src/java directory. 

Hence, I need a sample working Torque application.

If you have it, kindly forward it to me.

Thanks.
regards,

Anand



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



AW: Need a sample Torque application

2006-10-17 Thread Pfiester, Jan
Specify your needs and your problems please...

 

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. Oktober 2006 13:45
An: Apache Torque Users List
Betreff: Need a sample Torque application

Hi,

I am new to the torque. Can somebody send me any sample working Torque 
application? Because I am facing problems in the torque configuration.

Thanks.
regards,

Anand



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

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



Need a sample Torque application

2006-10-17 Thread anand.kulkarni
Hi,

I am new to the torque. Can somebody send me any sample working Torque 
application? Because I am facing problems in the torque configuration.

Thanks.
regards,

Anand



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