db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Barbieri <m.barbi...@ste-energy.com>
Subject Re: Custom BaseObject and BasePeer
Date Thu, 02 Feb 2006 16:28:50 GMT
I can't find those templates, where are they?
Are they simple to modify?

>The Base objects are generated using velocity templates - by default the
>templates in the Torque jar are used - you can modify the
>build.properties file to use the templates in some other location by
>changing useClasspath=false and pointing templatePath to where your
>templates are.
>If you want any code to be added in any generated class add it in the
>template and regenerate your classes.
>On Thu, 2006-02-02 at 16:45 +0100, Matteo Barbieri wrote:
>>I have a question:
>>I need some methods in all objects, obviusly I don't want to write them
>>on each Base class, and I don't want to modify the BaseObject class.
>>Is it possible to tell the generator that all Base classes have to
>>extend MyCustomBaseObject (that extends BaseObject and implements the
>>methods that I need)?
>>Thank you

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message