Dear Leo,

Thanks for your reply, but I'm just finishing to try with a downgrade of
appfuse from 2.0.2 to 2.0.1 and it doesn't work for me. I finally got the
same error :
...
[iabtool2] ERROR [main] runtime.error(96) |
Expression pojo.identifierProperty is undefined on line 22, column 33 in
appfuse/web/spring/formcontroller-test.ftl.
The problematic instruction:
----------
==> ${pojo.identifierProperty.name} [on line 22, column 31 in
appfuse/web/spring/formcontroller-test.ftl]
...

Note that I also encountered another problem with the result of
appfuse:gen-model.
In the equals and hashCode generated methods, a data field is compared to
null and is used in equals method but this data field is declared as short
instead of Short.

If someone is interested to reproduce the issue, here is the "procedure" : I
follow the quickstart guide (track spring mvc basic). I added the class
Person (same as the one used in the video struts2-crud) and launched mvn
appfuse-gen and mvn appfuse-install -Dentity=Person. Till there, everything
is working fine (after a mvn jetty-run-war).
Then I used mvn appfuse:gen-model (I'm using mysql and I have only one table
in it (except person freshly created). Below the description of the table.
And the error is coming when I launch mvn appfuse:gen on the new entity
(IabWbalModel in my case). appfuse:gen-model has created 2 classes in my
model package (IabWbalModel and IabWbalModelId).
Here is the ddl to create the table : 
CREATE TABLE `iab_wbal_model` (                
`AREA_ID` bigint(20) NOT NULL,               
`PART` varchar(15) NOT NULL,                 
`WBAL` decimal(3,0) NOT NULL,                
`WINDOW_ID` bigint(20) NOT NULL,             
 PRIMARY KEY  (`AREA_ID`,`PART`,`WINDOW_ID`)  
) ENGINE=InnoDB DEFAULT CHARSET=latin1

I would like to use appfuse...
Thanks a lot in advance for your help.

Regards 

Danny


Leo Barrientos C. 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-tp19787089s2369p19793415.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]

Reply via email to