Indrajit, Thanks! The problem was in the pom.xml. I fixed that to 1.1-SNAPSHOT and the problem went away.
Regards, Som On Sep 2, 8:59 pm, Indrajit Raychaudhuri <indraj...@gmail.com> wrote: > Som, > > 1. Your source code had dbAutoGenerated_?. The actual function is > dbAutogenerated_? (g is in lower case). > Hope you have the right case for 'g' one :) > > 2. If your project model (pom.xml) has lift versions set to 1.1- > SNAPSHOT, you must be on the master and thus on the latest code. > FWIW, dbAutoGenerated_? is part of the trait BaseMappedField in lift- > mapper > > Verify if both things are in order at give it another spin :) > > Cheers, Indrajit > > On Sep 2, 7:29 pm, Somindra Bhattacharya <somind...@gmail.com> wrote: > > > Hi again, > > > I just wanted to mention that I cannot override dbAutogenerated_?. I > > get the following error: > > > error: method dbAutogenerated_? overrides nothing > > override def dbAutogenerated_? = false > > > Looks to me that I am not using the latest framework code. How do I > > verify this? > > > Thanks, > > Som > > > On Sep 2, 2:24 pm, Somindra Bhattacharya <somind...@gmail.com> wrote: > > > > On Jul 30, 3:36 am, David Pollak <feeder.of.the.be...@gmail.com> > > > wrote: > > > > > I had to add a property on MappedField for dbGenerated_? which has to > > > > be set > > > > to false. > > > > > Here's the change set and the revised, working (wait for an hour for > > > > Hudson > > > > to build the new code) version. > > > > > On Wed, Jul 29, 2009 at 1:26 PM, Peter Robinett > > > > <pe...@bubblefoundry.com>wrote: > > > > Hi, > > > > I am new to programming for the Web and Lift is the first web > > > framework I am using. Therefore, please excuse me if my questions seem > > > naive. > > > > I have the same problem that Peter was facing. David, I looked through > > > your diff and tried making similar changes to my model class. However, > > > the primary key is still empty in the database. > > > > Here is the class that I have defined: > > > > class MJData extends KeyedMapper[String,MJData] > > > { > > > def getSingleton = MJData > > > > override def primaryKeyField = uid > > > > object uid extends MappedStringIndex[MJData](this,128) > > > { > > > override def writePermission_? = true > > > override def dbDisplay_? = true > > > // override def dbAutoGenerated_? = false //commented because it > > > does not compile > > > > override lazy val defaultValue = "11232312" // any string for > > > now... > > > > private var myDirty_? = false > > > override protected def dirty_?(b: Boolean) = myDirty_? = b > > > override def dirty_? = myDirty_? > > > } > > > > After looking at the pom.xml that Peter had posted, I upgraded to the > > > 1.1-SNAPSHOT. Is there something else that I need to do? > > > > Another question: > > > > > <snip> (wait for an hour for Hudson > > > > to build the new code) version. > > > > What does this mean? I am using Maven and I am assuming that it will > > > "pull" any new changes to the framework. > > > > Thanks for reading. > > > > Regards, > > > Som --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---