You can use mapper by itself. There's a dependency on lift webkit I believe. There might be some other issues, as i don't if anyone is using it that way. As for the number, are you talking about a userId? Why would you think you can't set an arbitrary field in Mapper?
On Wed, Jan 6, 2010 at 11:11 AM, Julian Backes <[email protected]>wrote: > Does really nobody know something about my problem? Something like "this is > not possible at the moment" is also ok... :-) > > Am 03.01.10 22:46, schrieb Julian Backes: > >> Hi, >> >> I have the following problem: >> For simplicity, assume I want to store users in the database. Before >> storing a user the first time in the database (using someNewUser.save), >> I want to create a special unique number for this user (which we need in >> our company) and store this number together with the new user. This >> number is based on several values and some of them need to be read from >> the database. >> My first idea was to add something to beforeCreate in the meta object >> but I'm not sure how to do the computation of the number together with >> the save operation in one transaction (which is absolutely necessary)? >> And are there better places to do this? >> I read something about putting the whole request in one transaction but >> this is not what I want. I'm currently only using the Mapper stuff >> (because I want a pure scala ORM) and not the whole Lift framework. >> >> Thanks in advance, >> Julian >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Lift" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<liftweb%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/liftweb?hl=en. >> >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<liftweb%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > > > -- James A Barrows--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
