Two different databases with one field different.

I’m working on getting a particular system working where there are two identical databases, except one database has tables with an extra field. I want to use AbstractRoutingDataSource to determine, at runtime, which datasource to use.

I’d like to use the same hibernate mappings, if possible, but make one field “@Transient” for the database/datasource that has tables missing the one field.

Is there some way to accomplish this?