[OJB-developers] OJB enhancements to 07.343
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-02-17 09:54:09
|
hi, the attached zip contains several enhancements to version 07.343: - deferred loading (lazy) for 1:1 relationships - wasNull when reading from ResultSet - platform cacheing - platform functions for setObject(), setNull() - a MySql platform to fix setObject for Types.BIT - StatementManager bindInsert and bindUpdate use platform functions now the most important feature is deferred loading for 1:1 relationships. it's based on DynamicProxies and thus requires you to implement an interface for the target side of the relationship (referenced.class). to enable it, use <proxyReference>true</proxyReference> in ReferenceDescriptor: <ReferenceDescriptor id="1"> <rdfield.name>partner</rdfield.name> <referenced.class>brj.ojb.Person</referenced.class> <fk_descriptor_ids>9</fk_descriptor_ids> <proxyReference>true</proxyReference> </ReferenceDescriptor> for consistency i also renamed <proxy> to <proxyCollection> for CollectionDescriptor. jakob |