I'm trying to create a mapped object that has some calculated values,
where the values are based on actual values in the mapped object.


class Tender extends LongKeyedMapper[Tender] with IdPK with OwnedEntity {
  def getSingleton = Tender
  object start extends MappedDate(this)
  object finish extends MappedDate(this)

  // Calculated field
  object length extends MappedInt(this) {
      override def toString = {....}
      override def ignoreField_? = true // Calculated field

However, I'm having some problems getting this to work:

1) I can't seem to read the values from the other fields within
length, ie both fieldOwner.id.is and id.is returns -1

2) There's no lifecycle callback that is called after load, so I can't (easily)
put the correct value into the field...

Any hints?


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 
For more options, visit this group at 

Reply via email to