db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TORQUE-317) BaseBean does generate fields for referencing objects
Date Sat, 16 Aug 2014 00:18:18 GMT

    [ https://issues.apache.org/jira/browse/TORQUE-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14099378#comment-14099378

Thomas Fox commented on TORQUE-317:

I cannot reproduce the described behaviour.
I have enabled the beans in the torque test project and it is working (as expected, as the
beans profile was tested on release time).

To find the error, would you mind to check out the torque 4.0 test project at 
and run
mvn -PderbyEmbedded,beans clean test
to see whether that works for you ?
E.g. sources for generated beans can be found in 
target/generated-sources/org/apache/torque/test/bean/BaseAuthorBean.java (with the collBookBeans
field) and target/generated-sources/org/apache/torque/test/bean/BaseBookBean.java (with the
aAuthorBean field)

Another idea would be to post the generator settings here, perhaps these cause the error.

> BaseBean does generate fields for referencing objects
> -----------------------------------------------------
>                 Key: TORQUE-317
>                 URL: https://issues.apache.org/jira/browse/TORQUE-317
>             Project: Torque
>          Issue Type: Bug
>          Components: Templates
>    Affects Versions: 4.0
>         Environment: Centos 6.4, Java 8
>            Reporter: Rob Decker
>            Priority: Critical
> In the baseBean.vm template the field definitions for referenced objects mergepoints
are present but the generated beans do not contain the fields. The methods do properly reference
the fields but the code does not compile because the field declarations are missing. 
> ## field definitions for referenced objects
> #if ($torqueGen.booleanOption("torque.om.complexObjectModel"))
> $torqueGen.mergepoint("fieldDefinitionsReferencedObjects")
> ##
> ## field definitions for referencing objects
> $torqueGen.mergepoint("fieldDefinitionsReferencingObjects")
> #end
> I am not familiar enough with templates to figure why it isn't working.

This message was sent by Atlassian JIRA

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

View raw message