val users:List[User] = findAll(User)
--> inferred type arguments [Nothing,object com.x.lift.model.User] do
not conform to method findAll's type parameter bounds [T <:
net.liftweb.mapper.LongKeyedMapper[T],M <:
 net.liftweb.mapper.LongKeyedMetaMapper[T]]

if i change to:
val users:List[User] = findAll[User,User](User)
--> type arguments [com.x.lift.model.User,com.x.lift.model.User] do
not conform to method findAll's type parameter bounds [T <:
net.liftweb.mapper.LongKeyedMapper[T],M <:
 net.liftweb.mapper.LongKeyedMetaMapper[T]]

thanks,

jon

On Aug 6, 3:12 pm, Ross Mellgren <[email protected]> wrote:
> What complaint does the compiler have?
>
> -Ross
>
> On Aug 6, 2009, at 2:06 PM, jon wrote:
>
>
>
>
>
> > I'd like to do something like
>
> >     def findAll[T <: LongKeyedMapper[T],M <: LongKeyedMetaMapper[T]]
> > (metaObject: M): List[T] = {
> >       metaObject.findAll
> >     }
>
> >     val users:List[User] = findAll(User)
> >     val foos:List[Foo] = findAll(Foo)
>
> > But the compiler won't have it.

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