Objective
In open source object-oriented database db4o The 1th part of the article: in the first db4o, the author introduces the history and actuality of db4o, the Application field, and the comparison with ORM, etc. in part 2nd: Db4o Query method, the author introduces three different ways of querying db4o : QBE, SODA and Native Queries, and through these three different ways to achieve the query of two related objects; in the 3rd part: In depth db4o, the author introduces the modification and deletion of db4o, introduces the important concept of "update depth (update depth)". 。
From the 3rd part of the series to the present 4th part, the middle has gone through a long time. Db4o itself is also progressing, in December 2008, the target database leader Versant Company acquired the DB4O and its development team, the acquisition of db4o injected new vitality. We introduced how to update and delete objects in db4o, and in this article I'll show you how to synchronize with a relational database (RDBMS) in db4o.
DRS Application Scope
DRS leverages the advantages of Hibernate to achieve two-way or one-way data synchronization of db4o to RDBMS, db4o to db4o, and RDBMS to RDBMS.
As shown in Figure 1, let's imagine this scenario: a car owner named "John" bought several cars, then went to the competent authorities to do the licensing, the operator to the data collection into the deployment of DB4O handheld devices (possibly based on the Android OS tablet); After data collection, directly from the handheld device through the wireless, cable connection Connect to the desktop application, the application Server (HIBERNATE/RDBMS), and archive. Right There is no need to write additional code to care about how objects are written to an RDBMS.
Figure 1. DRS model