-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate with Partitioning Tables in PostgreSQL
PostPosted: Mon Nov 24, 2008 11:40 am 
Newbie

Joined: Fri Aug 08, 2008 3:23 pm
Posts: 3
I'm using Hibernate in a JBoss SEAM application. I want to use partitioning in PostgreSQL. I created a script to partition the table, but when I tried inserting data into it, Hibernate throws an error indicating 0 rows were updated when it expected 1.

I found a possible solution online, but its for a later hibernate version than I'm using in JBoss 4.2.3.GA, which embeds hibernate 3.2.4 SP1.

http://stackoverflow.com/questions/8309 ... postgresql

When I try the code, it indicates batchSize is not visible.

Is there a better way to override the BatchingBatcher class or has someone else encountered the same problem with a different solution?

Any help you can provide would be greatly appreciated.

TIA,

M.


Top
 Profile  
 
 Post subject: Redine SQL Insert on Entity Bean using SQLInsert Annotation
PostPosted: Mon Nov 24, 2008 2:02 pm 
Newbie

Joined: Fri Aug 08, 2008 3:23 pm
Posts: 3
I found a solution that works, but it probably isn't ideal.

Essentially, you redine the entity bean's insert sql statement as denoted in the following post:

http://archives.postgresql.org/pgsql-pe ... g00219.php

By setting ResultCheckStyle.NONE in the SQLInsert annotation, the data is inserted without any issue.


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