Sorry, it was a "beginning scala" problem: Instead of val prod = Product.create.... i had def prod = Product.create...
then prod.save returned true and prod.id=-1... Also sorry for posting this twice, but for some reason it took several hours until the mails showed up on the list, I didn't expect that... BTW: I have bought your Lift book (the paper version...), and I am a little disappointed that it has neither an appendix nor an index. What was the reason for that? Cheers, Steffen. On Tue, Aug 11, 2009 at 8:34 PM, Derek Chen-Becker<dchenbec...@gmail.com> wrote: > Is it always the same one that gets a correct ID, and if you comment out > that save does the other one get a correct ID? I'm just wondering if there's > something sequential related to retrieving the generated IDs. > > Derek > > On Tue, Aug 11, 2009 at 6:25 AM, Steffen Weißmann > <steffen.weissm...@googlemail.com> wrote: >> >> Hi, >> >> i am using two Mapper classes, both extend LongKeyedMapper[..] with >> IdPK. After saving (returns true for both) one class always has id=-1, >> the id of the other class counts up as expected. The id is however >> correct when i list the table from another snippet. Any hints? >> >> Thanks, Steffen. >> >> > > > > > -- Steffen Weissmann Technische Universitaet Berlin - Math. Department - MA 3-2 Str. des 17. Juni 136 10623 Berlin - Germany Phone: +49 30 314-29278 Mail: weissm...@math.tu-berlin.de Web: www.math.tu-berlin.de/~weissman --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---