[OJB-developers] n:m relations to polymorph classes, automatic ddl generation
Brought to you by:
thma
From: Christoph S. <ch...@sc...> - 2002-03-25 01:20:12
|
Hi All! I am evaluation ojb for a simple content management system that supports multiple article types. Each article will be saved in a separate table, but i want to search across all of them. I think the <extends> feature of ojb enables that. But I also have a categories table with a n:m relation to article. now my questions: Is it possible to have a n:m relationship to a base class? I assume that ojb joins all involved tables when doing a query on an interface or baseclass. Will that still work if I have really lots of different article types? Some other questions relating to my cms efforts: Is there support planned for automatic updating of the database scheme? (ie create table or alter table) How hard would it be to use ojb without generating a class for every table? I'd just like to use ojb for generating a query, but i want to get my data back in a map instead of a bean. Then I could just define an article as a ojb mapping, and dont need to generate and compile java code if a new articletype is generated. TIA chris |