If you change your appfuse-maven-plugin to use version
2.0-rc1-SNAPSHOT, you may solve this problem. In 2.0-rc1-SNAPSHOT,
we're simply ignoring one to many and many to many. We may add this
functionality in the future, but I think the community needs to agree
on the UI pattern first.

Matt

On 7/19/07, Julien C. <[EMAIL PROTECTED]> wrote:
Hi list,

I've got a problem when I want to use appfuse:gen. It seems to be due to
a OneToOne relation. I think that's the same problem with the @embedded
annotation :

##############################
ERROR [main] runtime.error(96) |
Expression field.value.typeName is undefined on line 28, column 10 in
appfuse/web/spring/list-view.ftl.
The problematic instruction:
----------
==> if-else  [on line 28, column 5 in appfuse/web/spring/list-view.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression
field.value.typeName is undefined on line 28, column 10 in
appfuse/web/spring/list-view.ftl
        at
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
        at
freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121)
        ...
##############################

I don't know if i'm using correctly the OneToOne relation :

Class Etape {
  ...
  @OneToOne(cascade = CascadeType.ALL)
  @JoinColumn(name="COMMENTAIRE_ID")
  public Commentaire getCommentaire() {
    return commentaire;
  }
  ...
}

Class Commentaire {
  ...
  @OneToOne(mappedBy = "commentaire")
  public Etape getEtape() {
    return etape;
  }
  ...
}

If you have a idea on how to make it works...
Regards. Julien C.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to