Hibernate problems - Pgsql General [RSS]" href="http://www.talkaboutdatabases.com/group/pgsql.general/index.rss" />
Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Insert into mas...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 15718 of 17437
Post > Topic >>

Insert into master table ->" 0 rows affected" -> Hibernate problems

by Mattias.Arbin@[EMAIL PROTECTED] Jun 3, 2008 at 03:38 PM

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8C57F.2A0C05F2
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have implemented partitioning using inheritance following the proposed
solution here (using trigger):
http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html
=20
My problem is that when my Hibernate application inserts to the master
table, postgres returns "0 rows affected", which causes Hibernate to
throw an exception since it expects the returned row count to be equal
to the number of rows inserted.
=20
Is there a solution to this, i.e. to get Postgres to return the correct
number of rows inserted to the master table?
=20

------_=_NextPart_001_01C8C57F.2A0C05F2
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D826260013-03062008><FONT face=3DArial size=3D2>I have =
implemented=20
partitioning using inheritance following the proposed solution here =
(using=20
trigger):</FONT></SPAN></DIV>
<DIV><SPAN class=3D826260013-03062008><FONT face=3DArial size=3D2><A=20
href=3D"http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.h=
tml">http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html=
</A></FONT></SPAN></DIV>
<DIV><SPAN class=3D826260013-03062008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D826260013-03062008><FONT face=3DArial size=3D2>My =
problem is that=20
when my Hibernate application inserts to the master table, postgres =
returns "0=20
rows affected", which causes&nbsp;Hibernate to throw an exception since =
it=20
expects the returned row count to be equal to the number of rows=20
inserted.</FONT></SPAN></DIV>
<DIV><SPAN class=3D826260013-03062008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D826260013-03062008><FONT face=3DArial size=3D2>Is =
there a solution=20
to this, i.e. to get Postgres to return the correct number of rows =
inserted to=20
the master table?</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D1></FONT>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C8C57F.2A0C05F2--
 




 7 Posts in Topic:
Insert into master table ->" 0 rows affected" -> Hibernate probl
Mattias.Arbin@[EMAIL PROT  2008-06-03 15:38:54 
Re: Insert into master table ->" 0 rows affected" -> Hibernate p
Mattias.Arbin@[EMAIL PROT  2008-06-10 09:35:08 
Re: Insert into master table ->" 0 rows affected" -> Hibernate
magnus@[EMAIL PROTECTED]   2008-06-10 10:43:03 
Re: Insert into master table ->" 0 rows affected" -> Hibernate p
Mattias.Arbin@[EMAIL PROT  2008-06-10 12:48:28 
Re: Insert into master table ->" 0 rows affected" -> Hibernate
magnus@[EMAIL PROTECTED]   2008-06-11 10:42:59 
Re: Insert into master table ->" 0 rows affected" -> Hibernate p
Mattias.Arbin@[EMAIL PROT  2008-06-11 12:30:39 
Re: Insert into master table ->" 0 rows affected" -> Hibernate
magnus@[EMAIL PROTECTED]   2008-06-12 15:07:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 0:59:32 CST 2008.