-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate with DB2/OS390 an DB2 Qualifier
PostPosted: Wed Jan 11, 2006 12:57 pm 
Newbie

Joined: Wed Jan 04, 2006 4:17 pm
Posts: 3
Hello,

i have the following question concerning Hibernate. We would like to use Hibernate within our company-wide Enterprise Application.

We use DB2 on OS390 as our databasesystem. As I am not sure if everybody knows DB2 on OS390, I add a short info:

We have more than 200 clients (finance institutes) which all should use this application. The tables are equal for all our clients, but they have different DB-qualifiers. These DB-qualifiers look like the following:

Client001.personaldata
Client002.personaldata
...
...
Client200.personaldata

ClientXXX is the qualifier and personaldata the table. For each client there are 150 tables, so 30000 tables in total.

Now my question: Do I have to describe all tables with the corresponding qualifier in the XML-file? Or is it enough to only describe the tables and to add the qualifier during runtime (access)?

In my opinion it is not practible to describe 30000 tables because it would produce a lot of overhead.

I hope someone has an elegant solution to me.

Thanks very much
Martin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 1:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
map you personaldata is you want and then set hibernate.default_schema to e.g. Client001 when needed.

And you will need a sessionfactory per Client

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.