hi guys:
how lift mapper works with many-to-many relationships? the definitive
book told me to write code like this:

class ManyToManyRelation extends LongKeyedMapper[ManyToManyRelation]
with IdPK {

           ......
           object obj1 extends MappedLongForeignKey(this, other1)
           object obj2 extends MappedLongForeignKey(this, other2)

}

so this method uses obj1 and obj2 to keep this ManyToMany relation.
My question is : this method uses IdPK trait and id field as primary
key, but sometimes (obj1, obj2) can identify single item. how can i
use tupple (obj1, obj2) as primary key field without using idPK trait?
After all, this idPK field seems to be redundant here.

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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