Reverse engineering Event database table results in Home class that will not compile
------------------------------------------------------------------------------------
Key: JBSEAM-3963
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3963
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.1.GA
Environment: WIndows XP, MYSQL 5 database
Reporter: Bruce Link
Database has tables XUSER and EVENT. EVENT has a foreign key to XUSER. seam
generate-entities generates a XuserHome.java file with accessor
public List<Event> getEvents(); resulting in compiler error:
[javac] c:\apps\projects\infosys211\src\hot\ca\bcit\infosys\session\XuserHome.java:54:
getEvents() in ca.bcit.infosys.session.XuserHome cannot override getEvents() in
org.jboss.seam.framework.Controller; attempting to use incompatible return type
[javac] found : java.util.List<ca.bcit.infosys.model.Event>
[javac] required: org.jboss.seam.core.Events
[javac] public List<Event> getEvents() {
[javac] ^
--
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