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 Brian Latimer <bl...@apcc.aspca.org> on 2004/06/09 21:12:01 UTC

Map a class to multiple databases?

I have 2 databases with very different formats.  I would like to be able to 
pull data from one database to create an object, and then store that 
object, or a copy of it in the other database.

How can I do this when the mapping for my one class to each database is 
very different?
Should I use an interface for my base class and create 2 different 
implementing classes, one mapped to each database?

Or is there a way to map the same class to different databases?

Or do you have a better suggestion for how to attack this problem?

thanks much


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