cfqueryparam
value="#arguments.getEndTime()#"
cfsqltype="cf_sql_datetime" null="#NOT
isDate(arguments.getEndTime())#"
I don't find anything in the docs.
Thanks,
Nando
if NOT isDate(arguments.getEndTime())
obj.setDate(javaCast("null",0))
else
obj.setDate(arguments.getEndTime())
- Gabriel
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-or...@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
>
>
Or setEndDate(JavaCast("null", ""));
Henry
Henry
Thanks very much guys.
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-or...@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
What seems to be a bit odd is that date type fields are set to null automatically if they are submitted as empty strings. I thought that maybe numeric typed fields might be handled in a similar way, but they throw a mismatched type error in Hibernate.I'm wondering if I should or can depend on this behavior, the empty string to null translation with date fields. Perhaps it would be better to set the fields to null?Thanks,Nando