Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top