title: hibernate insert batch with partitioned postgresql
body: <p>is there a solution for batch insert via hibernate in partitioned postgresql table?  currently i'm getting an error like this...</p>
  
  <pre><code>ERROR org.hibernate.jdbc.AbstractBatcher - Exception executing batch:
  org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
     at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61)
     at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
     at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68)....
  </code></pre>
  
  <p>i have found this link <a href="http://lists.jboss.org/pipermail/hibernate-dev/2007-October/002771.html" rel="nofollow noreferrer">http://lists.jboss.org/pipermail/hibernate-dev/2007-October/002771.html</a> but i can't find anywhere on the web is this problem solved or how it can be get around</p>