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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]