Hi all,

I just committed some changes so that Record's fields are expressed as
vals.

For instance

class MyRecord extends Record[MyRecord] {

  def meta = MyRecordMeta

  object firstName extends StringField(this, "John")

}

becomes

class MyRecord extends Record[MyRecord] {

  def meta = MyRecordMeta

  val firstName = new StringField(this, "John")

}

... a more  "classical" approach.

If there are compelling reasons to use object instead of val please
share them with us.

P.S.

If you want lifecycle callbacks you can say:

class MyRecord extends Record[MyRecord] with LifecycleCallbacks {

  def meta = MyRecordMeta

  val firstName = new StringField(this, "John")

  override def beforeValidation {
    println("Before validation")
  }


}




Br's,
Marius
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to