-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate.default_schema doesn't change my tablespace
PostPosted: Tue Oct 12, 2004 12:34 pm 
Newbie

Joined: Tue Oct 12, 2004 12:15 pm
Posts: 2
When using Hibernate with DB2, I cannot get the tables to be created in the tablespace specified in the default schema. It creates the default schema correctly, but then uses the next available tablespace for creation which is not what I want. Does anyone know where I would specifiy the tablespace?

I specify the defaults in: hibernate.default_schema and also in my .hbm.xml file as schema="XXXXX"

Is there something that I am missing?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 12, 2004 12:48 pm 
Newbie

Joined: Wed Sep 01, 2004 1:32 pm
Posts: 9
Location: (eastern) North Carolina
What is current schema when tables get created?

Are you specifying the schema in the connection URL? Something like following:
//hostname:port/my_schema/

An alternative would be to add schema to create statements.
E.g. create table my_schema.my_table ....

Regards, feester


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 12, 2004 2:45 pm 
Newbie

Joined: Tue Oct 12, 2004 12:15 pm
Posts: 2
After speaking with my DBA, he thinks that Hibernate just picks the tablespace that was created first, with the lowest number, and creates the tables there. I am using Hibernate to create the tables and didn't know that I could manipulate the statements to insert a using clause.


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