Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of HibernateVsSqlObject


Ignore:
Timestamp:
03/04/08 19:22:28 (10 years ago)
Author:
Chris Arndt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HibernateVsSqlObject

    v4 v5  
    1 Hibernate is likely the most powerful open source OR mapper. Since it's a Java library, it has its hands tied in some respects (and they've worked around this via bytecode manipulation at times). SQLObject has decent power, but there are some parts that are not quite as rich as they are in Hibernate. 
     1{{{ 
    22 
    3 Quite a few people using Python today have previous experience with Hibernate. If we can gather up notes on the areas where Hibernate wins, that can sketch out a roadmap to bring the same power (likely with less code) to SQLObject. 
     3#!rst 
    44 
    5 == Lazy Updates == 
     5.. note:: This page has been migrated to http://docs.turbogears.org/1.0/HibernateVsSqlObject 
     6}}} 
    67 
    7 Hibernate allows you to instantiate and update objects without any SQL being executed. This is a blessing and a curse. By being able to do this, you can prevent quite a few extra SQL queries being run against your database (only to be rolled back later). The curse, however, is that SQLObject will need to have much more sophisticated transaction handling. 
    8  
    9 SQLObject has lazy updates, see http://www.sqlobject.org/SQLObject.html#lazy-updates 
    10 This does not extend to new object initialization, however. 
    11  
    12 == New Contender == 
    13  
    14 [http://www.sqlalchemy.org SQLAlchemy] has a more Hibernate-like method of operation, but is new and not yet ready for real world production usage.