You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Phil Warrick <ph...@mcgill.ca> on 2004/05/12 17:29:31 UTC
extent mapping (was: another JOIN question)
Hi all,
While reading this thread, I came across something that looks like an
improved way to map extents. (reference-descriptor name - "super" etc.)
Have I been sleeping while this development took place? This seems to
be undocumented.
Phil
<class-descriptor
class="SubObject"
table="SUB_OBJECT">
<field-descriptor
name="oid"
column="OID"
jdbc-type="INTEGER"
primarykey="true"
access="anonymous"/>
<reference-descriptor
name="super"
class-ref="TheObject"
auto-retrieve="true"
auto-update="true"
auto-delete="true">
<foreignkey
field-ref="oid"/>
</reference-descriptor>
<field-descriptor
name="someString"
column="some_string"
jdbc-type="VARCHAR"
access="readwrite"/>
</class-descriptor>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: extent mapping (was: another JOIN question)
Posted by Phil Warrick <ph...@mcgill.ca>.
Hi again,
OK, missed that change, I guess when mapping on multiple tables began to
be supported (this wasn't the case when I started using OJB). But is
it also valid repository syntax for mapping in the "All Classes on the
Same Table" model?
Phil
Charles N. Harvey III wrote:
> Phil,
> This is where I found it:
>
> http://db.apache.org/ojb/tutorial3.html#Mapping%20Classes%20on%20Multiple%20Joined%20Tables
>
>
> One major subsection below Extents and Polymorphism. "Mapping
> Inheritance Heirarchies"
> is the section it is in.
>
>
> Charlie
>
>
>
> Phil Warrick wrote:
>
>> Hi all,
>>
>> While reading this thread, I came across something that looks like an
>> improved way to map extents. (reference-descriptor name - "super"
>> etc.) Have I been sleeping while this development took place? This
>> seems to be undocumented.
>>
>> Phil
>>
>> <class-descriptor
>> class="SubObject"
>> table="SUB_OBJECT">
>> <field-descriptor
>> name="oid"
>> column="OID"
>> jdbc-type="INTEGER"
>> primarykey="true"
>> access="anonymous"/>
>> <reference-descriptor
>> name="super"
>> class-ref="TheObject"
>> auto-retrieve="true"
>> auto-update="true"
>> auto-delete="true">
>> <foreignkey
>> field-ref="oid"/>
>> </reference-descriptor>
>> <field-descriptor
>> name="someString"
>> column="some_string"
>> jdbc-type="VARCHAR"
>> access="readwrite"/>
>> </class-descriptor>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: extent mapping (was: another JOIN question)
Posted by "Charles N. Harvey III" <ch...@alloy.com>.
Phil,
This is where I found it:
http://db.apache.org/ojb/tutorial3.html#Mapping%20Classes%20on%20Multiple%20Joined%20Tables
One major subsection below Extents and Polymorphism. "Mapping
Inheritance Heirarchies"
is the section it is in.
Charlie
Phil Warrick wrote:
> Hi all,
>
> While reading this thread, I came across something that looks like an
> improved way to map extents. (reference-descriptor name - "super"
> etc.) Have I been sleeping while this development took place? This
> seems to be undocumented.
>
> Phil
>
> <class-descriptor
> class="SubObject"
> table="SUB_OBJECT">
> <field-descriptor
> name="oid"
> column="OID"
> jdbc-type="INTEGER"
> primarykey="true"
> access="anonymous"/>
> <reference-descriptor
> name="super"
> class-ref="TheObject"
> auto-retrieve="true"
> auto-update="true"
> auto-delete="true">
> <foreignkey
> field-ref="oid"/>
> </reference-descriptor>
> <field-descriptor
> name="someString"
> column="some_string"
> jdbc-type="VARCHAR"
> access="readwrite"/>
> </class-descriptor>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org