Hello, > -----Original Message-----
> For example, with an "article" object that is extended by > "BookArticle" > and "CDArticle" - I want to get a list of all articles, but also to be > able to tell when I iterate through the results what kind of article > each one is... > > Ideally, I could go through the list and check for each > article whether > it is a book or a cd, and cast as neccessary so that I can then access > the specific fields of the object relating to book/cd - Is > this possible > using the current release of OJB? I do not see your problem. Won't "instanceof CDArticle" do the trick? If your articles are mapped to the same table, that table should probably have a column ojbConcreteClass. Look into repository_junit for exmples. Olli -- Oliver Matz ppi Media GmbH Deliusstra�e 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email mailto:[EMAIL PROTECTED] web www.ppi.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
