Maybe one way to address nullability of foreign key associations as well as 
other field types is as follows. Don't know if it's possible or backward 
compatible, but here's the concept.
Make fields, including FKs, by default non-nullable--setting to Empty/null is 
an error, and maybe provide a get_! method for foreign keys.
Then maybe there could be a wrapper field -- similar to Option and Box -- that 
delegates to a non-nullable ordinary field.
I can't think of a better syntax, so you may have to write object field extends 
OptionalField(new MappedString(this,100)). Then MappedString would disallow 
nulls but OptionalField would delegate to MappedString when it's Full and store 
NULL otherwise.
Is that too farfetched?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to