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 Maksimenko Alexander <ma...@bird.cris.net> on 2004/05/27 17:18:40 UTC
Inheritance and Customization
Hi!
In the article "Advanced Object Relational Mapping techniques ****" in
the section "Mapping All Classes on the Same Table" is written that it's
possible to customize field which determines concrete type of extent
(ojbConcreteClass by default).
I want to customize both the name and type of the field.
But the QueryFactory class add criterias which discriminate concrete
classes if and only if search class has field with name "ojbConcreteClass".
So if I change the field's name I can't use abstract class as reference
in other objects.
The situation is same with fields type. QueryFactory class adds concrete
class names in InCriteria and there are not query-customizer in
class-descriptor level to change the names to some integer values.
So in fact I can't customize the field if I want use abstract classes as
references in other objects. Am I right?
--
Maksimenko Alexander
Softwarium, www.softwarium.net
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Inheritance and Customization
Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Maksimenko Alexander wrote:
> Hi!
> In the article "Advanced Object Relational Mapping techniques ****" in
> the section "Mapping All Classes on the Same Table" is written that
> it's possible to customize field which determines concrete type of
> extent (ojbConcreteClass by default).
> I want to customize both the name and type of the field.
> But the QueryFactory class add criterias which discriminate concrete
> classes if and only if search class has field with name
> "ojbConcreteClass".
> So if I change the field's name I can't use abstract class as
> reference in other objects.
> The situation is same with fields type. QueryFactory class adds
> concrete class names in InCriteria and there are not query-customizer
> in class-descriptor level to change the names to some integer values.
> So in fact I can't customize the field if I want use abstract classes
> as references in other objects. Am I right?
>
Sorry for stupid question.
Of cause all OK - if you specify your own RowReader implementation you
can tell to OJB which class it have instantiate
--
Maksimenko Alexander
Softwarium, www.softwarium.net
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org