EclipseLink with multiple schemas -
i have given oracle database structure, have use in new application. there master account, can connect, there can query list of schema names, contain same database objects (like tables same names etc).
now user of new application should choose entry of combobox list. selected entry have associated schema name. every query database should contain specific schema.
how can implement jpa (eclipselink 2.6)? should define persistence unit every schema , instantiate new entitymanager specific schema? such solution need passwords of every sub-schema (which don't have) , mapping between schema-name , persistence unit name.
is there better way? master account has access sub-schemas (grant select, insert, update, delete) necessary tables , views. possible build dynamic sql , add schema name there? how differ entitymanager data multiple schemas (i.e. 2 schemas same table names different generator sequences primary keys - there double ids betweeen schemas)?
thanks!
Comments
Post a Comment