db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fischer (JIRA)" <j...@apache.org>
Subject [jira] Updated: (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, 28 May 2006 07:41:31 GMT
     [ http://issues.apache.org/jira/browse/TORQUE-21?page=all ]

Thomas Fischer updated TORQUE-21:
---------------------------------

    Fix Version:     (was: 3.2)
        Version:     (was: 3.2.1)

> 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
>     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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message