db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <bri...@chariotsolutions.com>
Subject [proposal] AutoMapping
Date Thu, 13 Jan 2005 16:44:20 GMT
Would it be worthwhile to provide an automagic mapping facility which 
will attempt to figure out reasonable mappings given classes and a 
database connection?

It seems that for a lot of (typically small) projects direct Class <-> 
Table mappings with very similar names (article Article, sales_invoices 
SalesInvoice) and similar column/relation mappings (even fk's typically 
fall into Category#getArticles(): Collection<Article>)

Would a configurator which can interrogate a set of classes and a 
schema to dynamically build mappings (possibly with a facility for 
interacting with either xml metadata, or on-class 
(xdoclet/annogen/statics) to override automagic settings be worth 
working on?

I would need to finish up the unit of work stuff (though have never 
gotten feedback on it other than "yes would be nice to have" so not 
sure if it *should* be finished rather than removed...) before doing 
anything here, though.

-Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message