-->
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: Oracle table storage parameters
PostPosted: Fri Oct 07, 2005 10:01 am 
Newbie

Joined: Fri Oct 07, 2005 9:53 am
Posts: 2
Location: Sweden
Hello,

Does anyone know if it is possible to configure hibernate to set table and index properties when generating the schema(hbm2ddl) in Hibernate 3 ?

For example, I would like hibernate to set the INITRANS,PCTFREE,PCTUSED parameters when creating the schema in oracle, It would also be nice to be able to tell hibernate to create index-organized-tables instead of the standard table type.

Is this possible or do I have to create a sql script with alter statements and run it after the schema generation.

Any replies or thoughts would be greatly appriciated.

_________________
/Peter


Top
 Profile  
 
 Post subject: a reply
PostPosted: Fri Oct 07, 2005 1:51 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Since any reply are welcome there are my 2c:

You seem to care about DB a lot, very well! Therefore I suggest you to manage DB creation script yourself, possibly with using highly specialized tools like ErWin or DeZign.

ErWin has an excellent feature: “compare model and actual DB”. It allows nice visualization of changes and also provides convenient environment to create schema update scripts. Nice thing to have in case of migration.

Hibernate is wonderful ORM tool, but DB maintenance should be closely controlled and left to specialized tools or people.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 3:42 pm 
Newbie

Joined: Fri Oct 07, 2005 9:53 am
Posts: 2
Location: Sweden
:-) I do care about the DB, and I have worked with Oracle(DBA/Designer and dataaccess layer) for approx 8 yrs and im well aware of ErWin and such tools.

The reason for my question is not that I want to let hibernate do my production schema for me(god NO!),I want hibernate to create our test and verification schemas with reasonable parameters.. this is required for performance tests and such, but I do not want to maintain manual/semimanual DB create scripts in this phase of the project.

_________________
/Peter


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.