Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 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: 6
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: 1229
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.

_________________
If you liked my answer, you are going to love my High-Performance Java Persistence book and my blog as well.


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: 6
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: 1229
Quote:
1) We have already used flyway too . How can i achieve with it?


Here's a good 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 creates any problem ?


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

_________________
If you liked my answer, you are going to love my High-Performance Java Persistence book and my blog as well.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.