3.5.2.2.3. Limitations
  • The same database type and version must be used by each EntityManager. OpenJPA will use the same DBDictionary for each EntityManager and will make no attempt to alter SQL syntax between EntityManager instances.

  • It is the application’s responsibility to ensure that the schema is identical on each database.

  • The application may not specify schema names for individual entities.

  • The DataSource (ConnectionFactory) name may only be specified when the EntityManager is created. The DataSource may not be switched while an EntityManager is in use.

  • The L2 cache (DataCache) should not be used if different DataSources are specified for each EntityManager

  • SynchronizeMappings should not be used with this feature.

  • Table and Sequence generators should not be used with this feature.

  • It is not required, but is recommended that the openjpa.DBDictionary property be specified when using this feature