Hey Lifters, I wanna set the defaultValue for this object:
object status extends MappedLongForeignKey(this, OrderStateMetaObj){ override def defaultValue = OrderStateMetaObj.find(By(OrderStateMetaObj.name, "NEW")) openOr 0L } The problem is, that the referenced OrderState object doesn't exist at the time when the application is started first. I thought the openOr would do the job, but I'm getting this error and don't know how to get further... type mismatch; found : Any required: Long override def defaultValue = OrderStateMetaObj.find(By(OrderStateMetaObj.name, "NEW")) openOr 0L ^ one error found Am I right, that Any is returned because there is no OrderState object found? thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---