[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2104) Seam gen - two association between two same objects
Tomas Cerny (JIRA)
jira-events at lists.jboss.org
Sun Oct 14 15:23:03 EDT 2007
Seam gen - two association between two same objects
---------------------------------------------------
Key: JBSEAM-2104
URL: http://jira.jboss.com/jira/browse/JBSEAM-2104
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 2.0.0.CR2
Environment: does not matter
Reporter: Tomas Cerny
Priority: Minor
I am playing a lot with your awesome seam-gen.
I have a small request. When a table has two association between two same objects. (both has foreign key)
Eg.
Airplane ----(departure)------ Airport
Airplane ----(arrival)------ Airport
Airplane
-----------
id
fromId fk Airport.id
toId fk Airport.id
Airport
-----------
id
then my AirplaneHome after seam gen has
@In(create=true)
AirportHome airport
@In(create=true)
AirportHome airport
-----------------------------------------------------
I need to rename variable airport in AirportHome and update method wire
and create a @Role for AirportHome
then update injection in AirplaneHome
@In(value="from",create=true)
AirportHome airport
It seems easy to me from view as black box programmer ;)
Tomas
--
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