Utilizing only two classes, neko.db.Object and
neko.db.Manager , the SPOD system increases the simplicity of the haXe and Neko database support,
bridging the gap between object orientation and relational data storage by providing object to relational
mapping. To put this another way, by providing a map between objects and their relative database
tables, you can provide database updates, inserts, and deletes by simply creating or updating the
mapped objects and then calling an associated method.
There are several other systems that do this with other languages. The most notable is the Hibernate
framework for Java and the .NET framework. Now, the haXe SPOD system is nowhere near as mature as
Hibernate, and indeed, we truly doubt it ever will. The purpose of the SPOD system is not to provide
true object to relational mapping, but to provide a platform that you can extend in your own applications
where necessary.
(continued)
287
Chapter 11: Performing Server-Side Trickery
Getting Started
As always, the best way to learn how to use a tool is to jump straight in and use it.
Pages:
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563