Is it possible to create Compound-Primary-key in a model in lift's mapper
Question
Is it possible to create compound-Primary-key in Models in lift ? If yes, how ?
La 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.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow