On Sat, 27 Aug 2005 17:11:38 -0700, "Adam Maass"
<> wrote or quoted :
>Conceptually, you have entities in the database, and objects in memory.
>Objects map to rows in tables. Properties of those objects map to columns of
>the row. Conceptually, you start a (Hibernate) transaction, fish one or more
>POJOs out of the database (somehow), do stuff with them (that might change
>their state) and commit the Hibernate transaction. Hibernate translates the
>state modifications in the POJOs into the correct SQL DML to write the
>changes back to the database.
Is Hibernate a server side only beast or do you typically ship these
POJQs over the wire to Applets, and send only the changes back?
This is similar to what I faked in Java 1.0 with Symantec dbAnywhere.
I am glad to see the idea catching on. I went a step further
integrating the GUI object with the database object, so that on commit
all "smart" GUI objects whose values had changed triggered an SQL
update.
There is a lot of pointless overhead going on that could be bypassed
if Hibernate talked directly to the database engine, bypassing SQL.
Perhaps some day there will be Hibernate bypass into the engine.
Ideally the database would deliver binary format records that could be
instantly converted to Objects. The list of changes could be stream of
binary field numbers.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.