Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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


Back to the top