Why does the By method not accept two integers to compare? See erro 
below....thanks!
/home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/comet/Market.scala:83:
 
error: overloaded method value apply with alternatives [O <: 
net.liftweb.mapper.Mapper[O],T,Q <: 
net.liftweb.mapper.KeyedMapper[T,Q]](net.liftweb.mapper.MappedForeignKey[T,O,Q],net.liftweb.util.Box[Q])net.liftweb.mapper.Cmp[O,T]
 
<and> [O <: net.liftweb.mapper.Mapper[O],T,Q <: 
net.liftweb.mapper.KeyedMapper[T,Q]](net.liftweb.mapper.MappedForeignKey[T,O,Q],Q)net.liftweb.mapper.Cmp[O,T]
 
<and> [O <: 
net.liftweb.mapper.Mapper[O],T,U](net.liftweb.mapper.MappedField[T,O],U)(implicit
 
(U) => T)net.liftweb.mapper.Cmp[O,T] cannot be applied to (Int,Int)
    def createUpdate = 
NewOrders(LimitOrderMetaObj.findAll(By(LimitOrderMetaObj.status.id, 
1)).toList)

status is an enumeration type.

object Color extends Enumeration {
    val Red = Value("RED")
    val Blue = Value("BLUE")
}

Its initialized like this:
var status: Color.Value = Color.Red

So why is it not possible to use it inside the By method?

This doesn't work neither, similar error message:
....findAll(By(LimitOrderMetaObj.status, Color(1)))



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
-~----------~----~----~----~------~----~------~--~---

Reply via email to