[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Derek Chen-Becker
MetaMapper.findAllFields may work for what you're doing, but with the DAYOFWEEK conversion you may just have to go directly against the DB. Derek On Sun, Nov 8, 2009 at 11:44 PM, Neil.Lv anim...@gmail.com wrote: Hi all, There is some example code: ### SELECT id, name, sex, created_at,

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Neil.Lv
Is there a some simple code ~? Thanks very much! Cheers, Neil On Nov 13, 10:50 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: MetaMapper.findAllFields may work for what you're doing, but with the DAYOFWEEK conversion you may just have to go directly against the DB. Derek On

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Timothy Perrett
If you mean raw sql: DB.runQuery(SELECT * FROM abc) Cheers, Tim On 13 Nov 2009, at 17:35, Neil.Lv wrote: Is there a some simple code ~? Thanks very much! Cheers, Neil On Nov 13, 10:50 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: MetaMapper.findAllFields may work for

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Neil.Lv
Ok, Thanks for all your suggestion! I'll try it again, :) Cheers, Neil On Nov 14, 2:52 am, harryh har...@gmail.com wrote: You'll be better off if you don't do it that way.  Compute the day of week from created_at in your scala code (personally I prefer joda time for this sort of