Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2348

seam generate-ui fails for @OneToOne @PrimaryKeyJoinColumn annotated fields

    Details

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dan.j.allen Dan Allen
                  Reporter:
                  SunFire Thorsten Kunz
                • Votes:
                  6 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: