What's on line 21 of sample-data.xdt? AppGen doesn't support
generating code for associations (in the UI), but it also shouldn't be
bombing when you have them defined. As a workaround, you could try
removing them, generating the code, and then adding them back in.

Matt

On 7/10/07, Ding, Qin <[EMAIL PROTECTED]> wrote:
I am using appfuse 1.9.4/JSF.

Using appgen to produce all files from pojo is good only when the pojo
is simple.  I have a pojo with a many-to-one association with the user
object. When I use the appgen to produce the files from this pojo, I got
the error stating:

  [xdoclet] (XDocletMain.start                   48  ) Running
<template/>
  [xdoclet] (TemplateSubTask.engineStarted       826 ) Generating output
for 'com.abc.model.Product' using template file 'file:/C:/Documents and
 Settings/QDING/my projects/abc/extras/appgen/src/sample-data.xdt'.
  [xdoclet] (TemplateEngine.invokeMethod         547 ) Invoking method
failed: xdoclet.tagshandler.ClassTagsHandler.forAllClasses, line=21 of
template file: file:/C:/Documents and Settings/QDING/my
projects/abc/extras/appgen/src/sample-data.xdt

In my pojo

/**
   * @return the owner.
   * @hibernate.many-to-one name="owner"
   *            class="com.abc.model.User"
   *            column="user_id" not-null="true" lazy="false"
   */
  public User getOwner() {
        return owner;
  }

Is it possible to use appgen to product artifacts from the pojo having
associations defined?

Qin

---------------------------------------------------------------------
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