Sorry, type: I was referring to this:
def buildSetActualValue(accessor: Method, v: AnyRef, columnName: String):
(T, AnyRef) => Unit =
(inst, v) => doField(inst, accessor, {case f: MappedDate[_] => f.st
(toDate(v))})
def buildSetLongValue(accessor: Method, columnName: String): (T, Long,
Boolean) => Unit =
(inst, v, isNull) => doField(inst, accessor, {case f: MappedDate[_] =>
f.st(if (isNull) Empty else Full(new Date(v)))})
def buildSetStringValue(accessor: Method, columnName: String): (T, String)
=> Unit =
(inst, v) => doField(inst, accessor, {case f: MappedDate[_] => f.st
(toDate(v))})
def buildSetDateValue(accessor: Method, columnName: String): (T, Date) =>
Unit =
(inst, v) => doField(inst, accessor, {case f: MappedDate[_] => f.st
(Full(v))})
def buildSetBooleanValue(accessor: Method, columnName: String): (T,
Boolean, Boolean) => Unit =
(inst, v, isNull) => doField(inst, accessor, {case f: MappedDate[_] =>
f.st(Empty)})
2010/2/10 Jeppe Nejsum Madsen <[email protected]>
> On Wed, Feb 10, 2010 at 9:02 PM, Naftoli Gugenheim <[email protected]>
> wrote:
> > So are you saying to leave buildSetFromString pointing to Helpers.toDate
> for the time being?
>
> I'm not sure I follow? I can't find buildSetFromString (in master)
> anywhere and the setFromAny that covers string seem to call
> ConversionRules?
>
> To summarize: I think all code in MappedDate/Time should go through
> ConversionRules
>
> /Jeppe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.