Hi,
I'm new to Hibernate and a somewhat novice at databases too. What I am doing is developing an application where I will have multiple users and for most tables not much sharing.
To give some context, it is an application for the legal industry so I will have a table for a client(name, address, etc.), a table for case(case id, name, etc.). Now for all users of the application, they have their own clients, cases, etc.
Given that there is not much sharing of data, I thought I'd create a separate schema per user. How would this be done at runtime as the schema is specified in the hibernate.cfg.xml file or in the annotated class e.g. @Table (name="user", schema="myapp"). In fact is this even good design?
Thanks,
fb
|