-->
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: Table Generation with Oracle User Tablespace
PostPosted: Tue Jun 06, 2017 3:42 am 
Newbie

Joined: Mon Mar 27, 2017 1:14 am
Posts: 7
Hi All,

How can i generate table with user table space through hibernate with Oracle DB ?

https://docs.oracle.com/cd/B19306_01/se ... ysical.htm

Thank you


Top
 Profile  
 
 Post subject: Re: Table Generation with User Table Space Oralce
PostPosted: Tue Jun 06, 2017 3:50 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You mean like this:

Code:
create table my_table (
     id    number not null,
     description   varchar2(4000)
)
tablespace users;


Well, you can't with hbm2ddl, which we don't even recommend you to use hbm2ddl for production environments.

Use Flyway for this task.


Top
 Profile  
 
 Post subject: Re: Table Generation with Oracle User Tablespace
PostPosted: Tue Jun 06, 2017 4:15 am 
Newbie

Joined: Mon Mar 27, 2017 1:14 am
Posts: 7
Thank you

1) We have already used flyway too . How can i achieve with it?
2) In our project there are so many table created by hibernate with SYSTEM table space. Can i change it to USER table space?.Does it creates any problem ?


Top
 Profile  
 
 Post subject: Re: Table Generation with Oracle User Tablespace
PostPosted: Tue Jun 06, 2017 5:02 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Quote:
1) We have already used flyway too . How can i achieve with it?


You can use this tutorial.

Code:
2) In our project there are so many table created by hibernate with SYSTEM table space. Can i change it to USER table space?. Does it create any problem?


When you use Flyway, each DDL CREATE TABLE statement can decide which table space it needs to use.


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.