• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA (HIbernate) with Multiple Database Schemas

 
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a requirement to modify an existing application which has been written using JPA (with Hibernate, and JBoss Cache is enabled) to support multiple database schemas (Oracle). The idea is to support multiple clients using different schemas, but to have only a single running instance of the application. The application should select the schema dynamically.

This is to support multi-tenancy, but re-designing the application by adding new columns to identify records for each client is not an option at the moment.

My question is, is this possible ? If so, how can I achieve this ?

I took a look at Hibernate Shards, but that does not seem to solve my problem, as what I am after is not horizontal partitioning.

Thanks a lot.

Regards,
Yohan.
 
reply
    Bookmark Topic Watch Topic
  • New Topic