Differences between revisions 1 and 2
Revision 1 as of 2004-02-29 13:46:52
Size: 453
Editor: ScottEade
Comment: Convert from Usemod wiki.
Revision 2 as of 2009-09-20 22:56:15
Size: 453
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Q: I am new to OJB. I wonder if OJB has something like Hibernate's component mapping, which makes code structure better and reuse easier.

A: Yes that's possible with OJB too! If your class has an attribute "address" of type Adress, the mapping for the "street" attribute of "address" would look like follows:

      <field-descriptor
         name="adress::street"
         column="ADR_STREET"
         jdbc-type="VARCHAR"
      /> 

OJBNestedFields (last edited 2009-09-20 22:56:15 by localhost)