[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2348) seam generate-ui fails for @OneToOne @PrimaryKeyJoinColumn annotated fields
Tom Nicholls (JIRA)
jira-events at lists.jboss.org
Thu Jul 3 04:50:31 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2348?page=comments#action_12419741 ]
Tom Nicholls commented on JBSEAM-2348:
--------------------------------------
I also see this, in Seam2.0.3 . The problem disappears when the mappedBy attribute is removed.
> seam generate-ui fails for @OneToOne @PrimaryKeyJoinColumn annotated fields
> ---------------------------------------------------------------------------
>
> Key: JBSEAM-2348
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2348
> Project: Seam
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.0.0.GA
> Environment: Seam 2.0.0.GA
> JBoss Tools
> Reporter: Thorsten Kunz
> Fix For: 2.1.0.GA
>
>
> Since I do use JBoss Tool I assume that this is cause by an error in the underlying seam generate-ui. It fails if you have entities annotated like this:
> public class User implements Serializable {
> @Id
> @GeneratedValue
> private Long id;
> @OneToOne
> @PrimaryKeyJoinColumn
> private UserData userData;
> }
> public class UserData implements Serializable {
> @Id
> private Long id;
> @OneToOne
> @PrimaryKeyJoinColumn
> private User user;
> }
> This will result in this Exception:
> org.eclipse.core.runtime.CoreException: org.hibernate.tool.hbm2x.ExporterException: Error while processing template view/list.xhtml.ftl
> org.eclipse.core.runtime.CoreException[666]: org.hibernate.tool.hbm2x.ExporterException: Error while processing template view/list.xhtml.ftl
> Caused by: freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 39, column 6 in view/list.xhtml.ftl
--
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