[ http://jira.andromda.org/browse/BPM-247?page=comments#action_12271 ]
     
Wouter Zoons commented on BPM-247:
----------------------------------

I'll implement the Timestamp workaround, but I do recommend using Chad's 
suggestion .. it's much more elegant

> Date-Datatype compilation errors
> --------------------------------
>
>          Key: BPM-247
>          URL: http://jira.andromda.org/browse/BPM-247
>      Project: Bpm4Struts Cartridge
>         Type: Bug
>   Components: CRUD
>     Versions: 3.1-RC1
>     Reporter: Andreas Spankus
>     Assignee: Wouter Zoons
>     Priority: Minor
>      Fix For: 3.1M1

>
> As posted at http://galaxy.andromda.org/forum/viewtopic.php?t=97, some of the 
> date-datatypes throw compilation errors.
> The problem seems to be the generation of the *AsString-method of the 
> template 'CrudForm.java.vsl'.
> If differing between the datatypes from (around line 96) by replacing:
> this.$member.name = 
> (org.apache.commons.lang.StringUtils.isBlank($member.name)) ? null : 
> ${member.name}Formatter.parse($member.name);
> with:
> #if ($member.type.name.equals("Timestamp"))
>             this.$member.name = 
> (org.apache.commons.lang.StringUtils.isBlank($member.name)) ? null : new 
> java.sql.Timestamp(${member.name}Formatter.parse($member.name).getTime());
> #else
>             this.$member.name = 
> (org.apache.commons.lang.StringUtils.isBlank($member.name)) ? null : 
> ${member.name}Formatter.parse($member.name);
> #end
> ... it works.
> but this is not further tested and only a workaround for the 
> Timestamp-datatype.




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Reply via email to