Question

Is it possible to create compound-Primary-key in Models in lift ? If yes, how ?

Was it helpful?

Solution

No, it's not possible in lift according to this mailing list, where David Pollak say's

It's pretty non-trivial. I made some huge mistakes with Mapper and making it super-not-easy to do compound PKs was one of a long list of blunders. Sorry... but if I had a time machine, I'd got back 3 1/2 years and leave a note for myself that includes "Support compound primary keys in Mapper.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top