You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Nicolas Le Griel (JIRA)" <ji...@apache.org> on 2006/05/05 01:07:18 UTC

[jira] Created: (TORQUE-21) OM generated code does not compile when bean generation is activated and a table has several references to an other table

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, 3.2.1    
    Reporter: Nicolas Le Griel
    Priority: Minor
     Fix For: 3.2, 3.2.1


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


[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

Posted by "Thomas Fischer (JIRA)" <ji...@apache.org>.
     [ 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


[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

Posted by "Thomas Vandahl (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Resolved: (TORQUE-21) OM generated code does not compile when bean generation is activated and a table has several references to an other table

Posted by "Thomas Fischer (JIRA)" <ji...@apache.org>.
     [ 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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


[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

Posted by "Nicolas Le Griel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/TORQUE-21?page=all ]

Nicolas Le Griel updated TORQUE-21:
-----------------------------------

    Attachment: test-schema.xml.patch

Adds test case to reproduce compilation error and cover bug correction

> 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, 3.2.1
>     Reporter: Nicolas Le Griel
>     Priority: Minor
>      Fix For: 3.2, 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


[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

Posted by "Nicolas Le Griel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/TORQUE-21?page=all ]

Nicolas Le Griel updated TORQUE-21:
-----------------------------------

    Attachment: ObjectBeanMethods.vm.patch

Correction in template

> 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, 3.2.1
>     Reporter: Nicolas Le Griel
>     Priority: Minor
>      Fix For: 3.2, 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