I believe I solved it myself.

The mappedBy error was due to mapping the wrong thing. The real
problem was due to the following error message:

[INFO] Use of @OneToMany or @ManyToMany targeting an unmapped class

It was possible to solve this by starting to generate the class acting
as the "owner" of the relation (i.e. the one not using mappedBy).

Best regards,
Stefan


On Mon, Jun 9, 2008 at 14:35, Stefan Pettersson <[EMAIL PROTECTED]> wrote:
> I've specified two model POJOs that I would like to run appfuse:gen
> on. They are associated with each other through a @ManyToOne and
> corresponding mappedBy @OneToMany.
>
> When I run mvn appfuse:gen I get a fatal error (after entering entity name):
>
> [INFO] mappedBy reference an unknown target entity property: ...
>
> I get this both in AppFuse 2.0.2 as well as 2.0.1 (I got the
> SAXNotRecognizedException error, so I reverted back to 2.0.1 to get
> rid of that).
>
> The mapping gets added to the hibernate.cfg.xml file (I only have two
> of these in the src directory, one in main and one in test).
>
> Is it not possible to use appfuse:gen on POJOs with associations, or
> is it possible to solve this in any other way?
>
> Thanks in advance for any replies.
>
> Best regard,
> Stefan
>

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

Reply via email to