-->
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.  [ 4 posts ] 
Author Message
 Post subject: Same table different schemas
PostPosted: Sat Mar 06, 2004 10:57 am 
Beginner
Beginner

Joined: Sun Sep 14, 2003 10:54 am
Posts: 36
Hi,

Have the same table (same name, structure, etc) that is located in different PostgreSql schemas. E.g.:
Code:
schema1.CUSTOMER
schema2.CUSTOMER

Currently, the HB mapping of Customer.class is points to schema1. At runtime I'd like somehow to change against which schema the action is run. Any ideas?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 06, 2004 12:17 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
hibernate.default_schema
and
http://www.hibernate.org/171.html

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 7:29 am 
Newbie

Joined: Tue Mar 09, 2004 9:17 am
Posts: 12
emmanuel wrote:
hibernate.default_schema
and
http://www.hibernate.org/171.html


Thanks I allready had seen this, since i have multiple schemas in my oracle where my tables are distributed i cant use the default_schema solution. So i'm really need to know the java api to set the schema.

The 171.html page do not give any details about the api and i found no matching method in the javadoc as well.

Stefan


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 7:36 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
There is no API except the one that can provide the configuration (Properties, DOM etc...)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.