question: "Root" explanation

magmaodb dslextreme.com magmaodb at dslextreme.com
Sun Jul 26 07:56:56 UTC 2015


Hello, 
I am interested to convert my existing application from Oracle to Magma simply due to simplicity to manage and get away from converting from data to object and back, plus other issues involving relational database management. 

Anyway I do code in Smalltalk, but new to Squeak and definitely have no experience in Object databases. I read the literature and reviewed the Magma-Tester... classes to help me to understand the concept and the usage. 

One of the recommendations remains unclear, that is - NOT to use the Dictionary class as the ROOT, but instead use some other class to avoid the depth of "1", which is common for Collection classes retrieval. 

Could you please elaborate, what would you use for the superclass of the root class and would it have any subclasses (if any, please provide example). The point of confusion is that the method at:put: would be implemented in the root class and it is implemented in some of the collection classes. The Object class (which is one of of implementers) expecting integers only and I would like to have literals such as "person". The collection classes would allow for literals, but the recommendation (my assumption) would be other than the collection class. 

Obviously, I am missing something, please provide some examples (or correct me) so it would help me to move forward in the way that you have intended. 

Ian 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/magma/attachments/20150726/7e6e032e/attachment.htm


More information about the Magma mailing list