db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Vandahl (JIRA)" <j...@apache.org>
Subject [jira] Closed: (TORQUE-21) OM generated code does not compile when bean generation is activated and a table has several references to an other table
Date Sun, 26 Nov 2006 18:24:43 GMT
     [ http://issues.apache.org/jira/browse/TORQUE-21?page=all ]

Thomas Vandahl closed TORQUE-21.
--------------------------------


> 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
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 3.2
>            Reporter: Nicolas Le Griel
>         Assigned To: Thomas Fischer
>            Priority: Minor
>             Fix For: 3.3
>
>         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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message