[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ojb-user
Subject:    Re: Inheritance and Customization
From:       Maksimenko Alexander <maksimenko () bird ! cris ! net>
Date:       2004-05-28 7:19:53
Message-ID: 40B6E819.6090101 () bird ! cris ! net
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic