[ http://issues.apache.org/jira/browse/TORQUE-21?page=all ]
Thomas Fischer resolved TORQUE-21:
----------------------------------
Resolution: Fixed
Assign To: Thomas Fischer
> OM generated code does not compile when bean generation is activated and a
> table has several references to an other table
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: TORQUE-21
> URL: http://issues.apache.org/jira/browse/TORQUE-21
> Project: Torque
> Type: Bug
> Components: Generator
> Versions: 3.2
> Reporter: Nicolas Le Griel
> Assignee: Thomas Fischer
> Priority: Minor
> Fix For: 3.2.1
> Attachments: ObjectBeanMethods.vm.patch, test-schema.xml.patch
>
> There is a bug in Torque OM generation (Java code does not compile) which
> appears in the following conditions :
> torque.complexObjectModel=true, torque.objectIsCaching=true,
> torque.generateBeans=true and a table has several references to an other
> table.
> The problem can be reproduced with the test case I added in the
> test-schema.xml.patch file attached (XML definition of table
> 'multi_referencor' which references table 'referenced' through three
> columns). If one adds 'multi_rerencor' and 'referenced' table definitions in
> file test-schema.xml and then runs the Torque test project, test fails during
> compilation of "base" class generated for table 'referenced' in method :
> public static Referenced createReferenced(ReferencedBean bean, IdentityMap
> createdObjects).
> Here is a patch which corrects the defect in template ObjectBeanMethods.vm
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]