Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:43:34
Size: 459
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 22:56:19
Size: 459
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"
  • /> }}}

OJBProjectPages/OjbNestedFields (last edited 2009-09-20 22:56:19 by localhost)