History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: BPM-289
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Wouter Zoons
Reporter: Stefan Bachert
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
Bpm4Struts Cartridge

generator failed for DateTime

Created: 20/Jun/06 04:54 PM   Updated: 26/Jun/06 09:51 AM
Component/s: None
Affects Version/s: 3.2-RC1
Fix Version/s: None

Environment: Window XP


 Description   
I used a var of type "DateTime". The compile fails with

xxxx.java:20: setLastrunAsDate(java.sql.Timestamp) in list.LoadListForm cannot be applied to (java.util.Date)
        form.setLastrunAsDate(new java.util.Date());

Even when this works, the fact that the companion spring cartridge produces "java.util.Calendar" is surprising

 All   Comments   Change History      Sort Order:
Comment by Wouter Zoons [25/Jun/06 05:32 PM]
could it be that you are using webservices ? I believe in that case andromda uses the Calendar, and bpm4struts is probably not mapping it to the same type (could be a matter of setting properties in the correct namespace in andromda.xml)

Comment by Stefan Bachert [26/Jun/06 09:49 AM]
Yes, I am using webservices

Comment by Stefan Bachert [26/Jun/06 09:51 AM]
However, meanwhile I switched to Timestamp.
By the way what is the real difference between Timestamp and DateTime? From conceptable view it seems to be the same. I did not found a docu on that