appfuse:gen-model uses Hibernate Tools to generate the code, there's nothing AppFuse-specific in that plugin. The appfuse:gen plugin is something I wrote and I'm not quite smart enough to figure out how to make it handle @EmbeddedId.
Matt On Sat, Oct 4, 2008 at 2:25 AM, dnv <[EMAIL PROTECTED]> wrote: > > Dear Matt, > > In that case, I don't understand why appfuse:gen-model allows, in my > example, to generate 2 classes (IabWbalModel and IabWbalModelId) with an > annotation @EmbeddedId (in the IabWbalModel class) if this causes trouble to > appfuse:gen. > > Do you see a workaround to this limitation of AMP ? > > Thanks a lot in advance. > > Regards > > Danny > > > mraible wrote: >> >> AFAICT, AMP doesn't support EmbeddedId. >> >> On Fri, Oct 3, 2008 at 1:57 AM, dnv <[EMAIL PROTECTED]> wrote: >>> >>> Dear Matt, >>> >>> First of all, I would like to congratulate you for your work on AppFuse >>> =). >>> Then I'm just posting an answer to Leo. I put more details on the issue >>> in >>> this message. >>> Is it possible that you have a look at this issue ? >>> Thanks a lot in advance. >>> >>> Regards >>> >>> Danny >>> >>> >>> mraible wrote: >>>> >>>> It seems strange that you would have to do this. What version are you >>>> downgrading from/to? It sounds like I might've messed something up in >>>> the latest release? >>>> >>>> Matt >>>> >>>> On Thu, Oct 2, 2008 at 2:47 PM, Leo Barrientos C >>>> <[EMAIL PROTECTED]> wrote: >>>>> I fix that changing the appfuse version in pom.xml, >>>>> >>>>> a) Downgrade appfuse version in pom.xml >>>>> b) Generate things >>>>> c) Upgrade appfuse version in pom.xml again. >>>>> >>>>> Is a real dirty solution but its worked for me, and it was just for >>>>> generating things. >>>>> >>>>> >>>>> >>>>> dnv wrote: >>>>> >>>>> I follow the quickstart guide succesfuly. I added Person class to the >>>>> brand >>>>> new project created by appfuse. I ran appfuse:gen and appfuse:install >>>>> for >>>>> Person. Everything still worked fine. Unfortunatly, I encountered an >>>>> issue >>>>> when I tried to add another pojo which have an EmbededId as id. >>>>> appfuse:gen >>>>> always gives an error as from that time >>>>> ("freemarker.core.InvalidReferenceException: Expression >>>>> pojo.identifierProperty is undefined on line 22, column 33 in >>>>> appfuse/web/spring/formcontroller-test.ftl"). Is it possible that >>>>> appfuse:gen doesn't support EmbeddedId ? >>>>> Thanks a lot in advance for your help. >>>>> Regards >>>>> Danny >>>>> >>>>> >>>>> -- >>>>> >>>>> Leo Barrientos C. >>>>> >>>>> Chief Operating Officer >>>>> >>>>> Open Sistemas Chile >>>>> email: [EMAIL PROTECTED] >>>>> Fono: +56 2 8912095 Móvil: 93052300 >>>>> http://www.opensistemas.com >>>>> >>>>> >>>>> Este mensaje se dirige exclusivamente a su destinatario y puede >>>>> contener >>>>> información privilegiada o CONFIDENCIAL. Si no es usted el destinatario >>>>> indicado, queda notificado de que la utilización, divulgación y/o copia >>>>> sin >>>>> autorización está prohibida en virtud de la legislación vigente. Si ha >>>>> recibido este mensaje por error, le rogamos que nos lo comunique >>>>> inmediatamente por esta misma vía y proceda a su destrucción. >>>>> >>>>> This message is intended exclusively for its addressee and may contain >>>>> information that is CONFIDENTIAL and protected by professional >>>>> privilege. >>>>> If >>>>> you are not the intended recipient you are hereby notified that any >>>>> dissemination, copy or disclosure of this communication is strictly >>>>> prohibited by law. If this message has been received in error, please >>>>> immediately notify us via e-mail and delete it. >>>> >>>> >>> -- >>> View this message in context: >>> http://www.nabble.com/appfuse%3Agen-issue-%28pojo.identifierProperty-is-undefined%29-tp19787089s2369p19793514.html >>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/appfuse%3Agen-issue-%28pojo.identifierProperty-is-undefined%29-tp19787089s2369p19810064.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >