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 wrote:
> I'm having a bit of trouble with a mapper class I'm trying to make.
> Ever
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 bot
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] {
}
Try LiftRules.loadResourceAsXml
Br's,
Marius
On Jul 4, 1:11 am, glenn 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 xml = XML.lo