Hi,
We have created a table with four foreign keys.We have successfully created the 
OM.

Thanks & Regards,
Cibi Jayabalan
TVS Infotech Ltd.
82 Santhome High Road
Chennai. 600028. India
Tel: +91-44-24618550
Fax:+91-44-24618545
www.tvsinfotech.com
Confidentiality Notice: This transmittal is a confidential communication. If 
you are not the intended recipient, you are hereby notified that you have 
received this transmittal in error and that any review, dissemination, 
distribution or copying of this transmittal is strictly prohibited. If you have 
received this communication in error, please notify TVSI immediately and delete 
this message and all of its attachments, if any forthwith. Please also note 
that possession, distribution in whole or part of unauthorized information is 
punishable under Cyber law. 



-----Original Message-----
From: Thomas Fischer (JIRA) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 4:58 PM
To: [email protected]
Subject: [jira] Resolved: (TORQUE-55) Generated OM compilation fails
when table has 2 foreign keys to another table (and generateBeans=true)


     [ http://issues.apache.org/jira/browse/TORQUE-55?page=all ]

Thomas Fischer resolved TORQUE-55.
----------------------------------

    Fix Version/s: 3.2.1
       Resolution: Duplicate

> Generated OM compilation fails when table has 2 foreign keys to another table 
> (and generateBeans=true)
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TORQUE-55
>                 URL: http://issues.apache.org/jira/browse/TORQUE-55
>             Project: Torque
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 3.2
>         Environment: JDK 1.5, Torque 3.2
>            Reporter: Declan Shanaghy
>             Fix For: 3.2.1
>
>         Attachments: project-schema.xml
>
>
> Given the following object model in a project where generateBeans=true 
> BOOK
> -------------------------
> book_id :  int
> author_id : int (FK)
> coauthor_id : int (FK)
> AUTHOR
> ------------------------
> author_id : int
> name : varchar(255)
> Compilation of the generated code fails with error messages shown below
> C:\Documents and 
> Settings\Declan\bookstore\src\java\com\kazmier\om\BaseAuthor.java:1123: 
> cannot find symbol
> symbol  : method addBookFromBean(com.kazmier.om.Book)
> location: class com.kazmier.om.Author
>                     result.addBookFromBean(related);
>                           ^
> C:\Documents and 
> Settings\Declan\bookstore\src\java\com\kazmier\om\BaseAuthor.java:1137: 
> cannot find symbol
> symbol  : method addBookFromBean(com.kazmier.om.Book)
> location: class com.kazmier.om.Author
>                     result.addBookFromBean(related);
> The solution is to change lines 1123 & 1137 from
>                     result.addBookFromBean(related);
>                     result.addBookFromBean(related);
> to
>                     result.addBookRelatedByAuthorIdFromBean(related);
>                     result.addBookRelatedByCoAuthorIdFromBean(related);

-- 
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]



-- 
This message has been scanned for viruses and
dangerous content by TVSIL MailScanner, and is
believed to be clean.





-- 
This message has been scanned for viruses and
dangerous content by TVSIL MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to