db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Kannegiesser" <macs_mailingli...@gmx.de>
Subject Another Torque-Maven2-Plugin Question
Date Wed, 19 Sep 2007 11:48:48 GMT
Hi Again. 

I am still porting my app to maven2 and am "fighting" with that torque-plugin...

The maven1 plugin generated Generics when I set up the following in the .properties file:

torque.enableJava5Features=true

Then foregin key's getters are realized like this: 

public List<HumanResource> getHumanResources() { ... }

This seems not to work in the Maven2 version. 

My config for the plugin looks like this:
<execution>
<id>OM Goal (Generating Classes, Beans, ...)</id>
<goals>
  <goal>om</goal>
</goals>
<configuration>
  <enableJava5Features>true</enableJava5Features>
[...]
</configuration>
</execution>

Torque seems to ignore this setting and generates from the same schemafile the following:

public List getHumanResources()

which - of course - breaks my changed sourcefiles because they dont cast to (HumanRessource)
before calling operations on the result. Because this is at many places I would not want to
change back all the sourcecode to pre-java5.

Is this a configuration-error or again a missing feature?


Thanks for your help, 


Marc


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


Mime
View raw message