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.  [ 5 posts ] 
Author Message
 Post subject: How does hibernate supports table partitioning?
PostPosted: Mon Aug 15, 2005 9:05 pm 
Beginner
Beginner

Joined: Mon Aug 15, 2005 9:00 pm
Posts: 37
Hi,

Just wonder how does hibernate supports table partitioning (horizontal / vertical ) for very large databases?

cheers
chuck


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 1:47 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
that is database level - you can have , for example, oracle partitioning (database server level) and it is transparent to hibernate


Top
 Profile  
 
 Post subject: postgresql table partitioning
PostPosted: Wed Jan 04, 2006 9:26 am 
Newbie

Joined: Fri Sep 02, 2005 12:47 pm
Posts: 14
Location: muenchen
Hi,

It seems that it is not so transparent in postgresql. I was trying to insert to table which is partitioned by the rules. Hibernation gives an error as a number of rows did not increase in the main table. The main table is only a projections of the all partitions.

It would be useful to have some way to work with hiberantion and table partitioning on open-source database - postgresql and not only on oracle.

Any suggestions ?

Sincerely,

Pawel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 1:35 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Pawel,
try set custom DML in mapping for your tables
16.4. Custom SQL for create, update and delete

set insert,delete,update commands like commands in psql


Top
 Profile  
 
 Post subject: ...
PostPosted: Wed Jan 04, 2006 2:36 pm 
Newbie

Joined: Fri Sep 02, 2005 12:47 pm
Posts: 14
Location: muenchen
the tutorial said
"The stored procedures are in most cases (read: better do it than not) required to return the number of rows inserted/updated/deleted, as Hibernate has some run time checks for the success of the statement."

Although it is about the procedures possible it would be also the true for custom sql. It is probable that after running my custom sql statement it will check the number of rows.

I will have to check this but one should be able to go around this using procedures.

Thanks,

Pawel


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