[Lift] Re: Mapping null field ?

2009-05-08 Thread sailormoo...@gmail.com
Thanks... Another question is, when I want to set the foreign key to null I use talk.actioner_id(null.asInstanceof[UserEntry]) which results an exception, how to set a foreign key to null? Thanks On 5月7日, 上午1時18分, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, May 5, 2009 at 6:03

[Lift] Re: Mapping null field ?

2009-05-06 Thread David Pollak
On Tue, May 5, 2009 at 6:03 PM, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hello: I want to know how to check if a field is null. The code results in an error if (talk.actioner_id.is != null) {} I'm figuring talk.actioner_id is a MappedLongForeignKey... correct? If so, use