Check out:
http://github.com/dpp/liftweb/blob/f5a24da9309be6d515540c63237e094debe12932/lift-mapper/src/main/scala/net/liftweb/mapper/MappedField.scala
You're looking for: defaultValue,
object name extends MappedString(this, 100) {
override def defaultValue = "bradford"
}
On Mar 29, 4:36 pm, bradford <[email protected]> wrote:
> Is there a way to specify the default value on a table column with
> Mapper? And is there a way to specify that the table column is not
> null with the Mapper?
>
> Thanks,
> Bradford
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---