The issue I'm struggling with now is how to implement class
inheritance in MongoDB. In my Java domain model I have the following
classes:
Party
Organization extends Party
Person extends Party
User extends Person
I don't expect to have any trouble modelling these classes in Scala
but I don't know how to then map them to Collections and Documents in
MongoDB. I have seen a tutorial that describes how the C# driver
automatically handles the inheritance for you but there doesn't seem
to be any such functionality in the Java/Scala world.
The reason I'm posting this question in a Lift forum is because I
expect the eventual solution to have something to do with lift-mongodb-
record (at least I would like that to be the case).
Any pointers would be great.
Thanks,
Kevin
On Dec 6, 9:12 am, Kevin <kevinyp...@gmail.com> wrote:
> Pls also consider these links.
>
> http://groups.google.com/group/liftweb/browse_thread/thread/2e6921bc3...
Inheritance with Record is a little tricky, but there are some things
you can do, as pointed out in the links in the posts above.
If you'd prefer to use regular case classes then I'd suggest using
Casbah/Salat. Lift has MongoDocument, but Casbah/Salat is more than
likely a better choice. If you go this route you'll lose all of the
features of Record though. In particular, validation and auto form
creation/LiftScreen.
Tim
On Dec 5, 5:44 pm, Kevin Stembridge <kevin.stembridge....@gmail.com>
wrote: