[Lift] Re: using file-based data storage in Lift app

2009-07-04 Thread marius d.
Try LiftRules.loadResourceAsXml Br's, Marius On Jul 4, 1:11 am, glenn gl...@exmbly.com wrote: I've searched this group and combed through the lift book for an answer, but found none - how to use file-based storage for data within Lift. For example, how would I call something like: def

[Lift] Getting the generated id from a mapper instance

2009-07-04 Thread Spencer Uresk
I'm having a bit of trouble with a mapper class I'm trying to make. Everything is working fine, except that I cannot get the id of the newly-saved class - it always returns the default value (-1L). Here is what my class looks like: object Job extends Job with LongKeyedMetaMapper[Job] { }

[Lift] Re: Unique constraint

2009-07-04 Thread Calen Pennington
Currently, to create a 2 key index, you do something like: dbIndexes = Index(IndexedField(foo), IndexedField(bar)) :: Nil My intention is set it up so doing something like: dbIndexes = UniqueIndex(IndexedField(foo), IndexedField(bar)) :: Nil will create a unique index over the combination of

[Lift] Re: Getting the generated id from a mapper instance

2009-07-04 Thread Peter Robinett
I think I got the same thing once before when referring to the companion object (singleton) instead of my specific instance. Perhaps you're doing the same thing? Peter Robinett On Jul 4, 2:14 am, Spencer Uresk sur...@gmail.com wrote: I'm having a bit of trouble with a mapper class I'm trying