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?

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. https://solitaire.onl/

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.https://9apps.ooo

Is there some way to accomplish this?

guys any feedback!!

Can you please elaborate your question a bit as I am not able to understand it.

Please share more details.

Thanks shareit vidmate