[
https://jira.jboss.org/jira/browse/JBSEAM-3599?page=com.atlassian.jira.pl...
]
Dan Allen commented on JBSEAM-3599:
-----------------------------------
I can explain why this happens. Hibernate Tools is incorrectly generating a duplicate
foreign key, which then results in a duplicate association (vehicles and vehicles_1),
which then causes seam-gen to create a duplicate tab in the UI. Since the component ID of
the tab is keyed off of the entity name, it is not unique in the page.
viewAdd${childName}ButtonId
The reason Hibernate Tools is creating a foreign key is because hibernate.hbm2ddl.auto is
set to update (instead of validate). This is really a bug in Hibernate Tools. There are
three workarounds:
1) Change the foreign key definition for ownerUsername so that it matches what Hibernate
Tools generates (basically, you have to use the generated key name).
2) Change hibernate.hbm2ddl.auto to none
3) Use an ID that is unique in the event that a two tables with the same child name exist
(it is possible in other circumstances anyway).
Seam-gen : Icefaces war project throws IllegalStateException
------------------------------------------------------------
Key: JBSEAM-3599
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3599
Project: Seam
Issue Type: Bug
Components: ICE Faces Integration, Tools
Affects Versions: 2.1.0.GA
Environment: JDK 5
JBoss AS 4.2.3
Reporter: Jozef Hartinger
Assignee: judy guglielmin
Attachments: seam-gen-ice-ear-edit.txt
1.) Create new Icefaces EAR project
2.) Generate entities from database using standard vehicle and person tables
(release-process.txt)
3.) Deploy project
4.) Create person
5.) After new person is created, click to view user details
6.) Click edit button - after this I am getting the attached exception
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira