Whilst I didn't need option feilds, making custom field types is part
of the course with Record as the defaults are just that; defaults :-)
Cheers, Tim
Sent from my iPhone
On 8 Jan 2010, at 23:37, Ross Mellgren <[email protected]> wrote:
So I'm trying to write the CouchDB / Lift-JSON record instance,
however I've run into a major snag, which is null handling. The
DBRecord implementation is not complete, so I can't see how other
things are doing it, and I tried hacking around and I can't figure
out how Record supports null fields (missing values, really). In
particular I need this for the couch type of record because not
every record has an _id or _rev, so I need to represent no-value. I
prefer to use Option or Box for this, but none of the built in field
types have this pattern.
Do I need to make new net.liftweb.record.field.OptionalStringField,
OptionalBooleanField, etc etc? Or is there something I'm missing?
-Ross
--
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
.
--
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.