Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [dali-dev] generating java.util.Date vs. java.sql.Date

Hi,

I think this is a more general issue. In entity generation, Dali should offer a wizard or preferences to chose more backward engineering options like temporal types, primitive vs. wrapper types, property vs. field access, ...

Maybe this should be an platform-extension point in 2.0.

Regards,

Adrian


Adrian Görler
SAP AG
Dietmar-Hopp-Allee 16
D-69190 Walldorf, Germany
T   +49 6227 747474
http://www.sap.com

Sitz der Gesellschaft/Registered Office: Walldorf, Germany
Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Léo Apotheker (stellvertretender Sprecher/Deputy CEO), Werner Brandt, Claus Heinrich, Gerhard Oswald, Peter Zencke
Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory Board: Hasso Plattner 
Registergericht/Commercial Register Mannheim No HRB 350269

-----Ursprüngliche Nachricht-----
Von: dali-dev-bounces@xxxxxxxxxxx [mailto:dali-dev-bounces@xxxxxxxxxxx] Im Auftrag von Tom Mutdosch
Gesendet: Mittwoch, 11. Juli 2007 23:07
An: dali-dev@xxxxxxxxxxx
Betreff: [dali-dev] generating java.util.Date vs. java.sql.Date

Hi guys,

When Dali generates entities, for Date types it generates a type of 
java.sql.Date.  Is it possible to (programatically) have it generate types of 
java.util.Date?  eg:

     @Temporal(TemporalType.DATE)
     private java.util.Date salesDate;

The reasoning behind this is that JSF's f:convertDateTime seems to assume 
java.util.Date and throws a conversion error for java.sql.Date.  Would this be 
difficult for me to change the default generation in this scenario?

Thanks
Tom
_______________________________________________
dali-dev mailing list
dali-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dali-dev


Back to the top