[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2180) Seam-gen EntityHome injection problem

Viorel Andronic (JIRA) jira-events at lists.jboss.org
Mon Oct 29 09:35:01 EDT 2007


Seam-gen EntityHome injection problem
-------------------------------------

                 Key: JBSEAM-2180
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2180
             Project: JBoss Seam
          Issue Type: Bug
          Components: Tools
            Reporter: Viorel Andronic


When you have a table in a database that has 2 or more foreign keys on another table(ex: a project in the projects table has a client and a supplier that are stored as companies in the companies table) then what seam-gen does, among other things, is:

- generates a CompaniesHome and a ProjectsHome classes;
- in the ProjectsHome class it injects 2 or more CompaniesHome objects WITH THE SAME NAME corresponding to the number of foreign keys in the projects table;

I think you should test for this case and when you have more than one foreign key, you should inject only one object.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list