I am new to OJB. I wonder if OJB has something like Hibernate's component mapping, which makes code structure better and reuse easier.
Thanks.
=============================================
Write fine-grained classes and map them using <component> or <component-element>.From Hibernate Doc:
Use an Address class to encapsulate street, suburb, state, postcode. This encourages code reuse and simplifies refactoring.
component
The <component> element maps properties of a child object to columns of the table of a parent class. Components may, in turn, declare their own properties, components or collections. See "Components" below.
<component name="propertyName" class="className"/>
<property ...../>
........
</component>
name: The name of the property.
class (optional - defaults to the property type determined by reflection): The name of the component (child) class.
The child <property> tags map properties of the child class to table columns.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
