I am developing a Java EE JBoss service that will be deployed in two different environments: one using SQL Server as the database and the other using Oracle 10g.
My database schemas are very similar, except that the primary key columns are automatic identity increment in SQL Server and are generated using sequences in Oracle.
With JPA, is it possible to use one set of objects with two DBs?
Thank!
, , PK XML, . 2 "orm.xml", , , "persistenceUnitOracle" Oracle, orm-oracle.xml "persistenceUnitSqlServer" SQLServer, orm-sqlserver.xml
Source: https://habr.com/ru/post/1794783/More articles:RAW and PHP images - phpLINQ Join in Присоединиться, как? - joinHow to change the look of the default switch, not the functionality? - javascriptASP.NET Transferring data between multiple page sessions - asp.netAS3: Impossible to have getters and setters for one variable in different interfaces? - interfaceto create elements and set attributes inside each other using jquery? - jqueryGoogle Lazyloading API not working - javascriptUpload image only when it is available for viewing? - javascriptwhere should I create a constructor, and where shouldn't I? - java.htaccess: Cache Control, how can I handle website updates? - phpAll Articles