0

i am currently learning the lift framework, and have a question regarding persistence in associated records.

if i had a model, say, artist. i also have a model called album, and one called track. an artist can have many albums, which have many tracks.

is there a way in the model to set up the dependency such that when i deleted an artist, all of their albums, and in turn, all of their tracks were deleted?

i am planning on using record with mongodb.

thanks!

4

1 回答 1

0

Lift 没有任何中央或官方数据库包装器。你可以使用任何你想要的。例如,我使用纯 squeryl。

如果您在谈论记录-squeryl——那么主文档页面显示了一个一对多关系的示例:https ://www.assembla.com/wiki/show/liftweb/Squeryl

如果您在谈论 mongodb+record - 那么我会看到这样的页面https://www.assembla.com/wiki/show/liftweb/MongoDB 可以适合您。

也不是说周围也有 Rogue,如果您使用邮件列表https://groups.google.com/forum/#!forum/liftweb,问题会更快得到回答。AFAIK,这是询问电梯问题的主要方式。

于 2013-04-07T16:29:16.430 回答