Re: [Hibernate] CVS Problems

2003-09-12 Thread Michael Gloegl
Hi, > > > when trying to connect to the CVS I constantly get "EOF from Server" > I think it has to do with SF.net throttling the amount of pserver > connections to the non-developer access CVS Server. I got it for a long > time, and then I go through finally. It just takes time, keep trying. Thi

Re: [Hibernate] Postgresql array index exception creating a new record

2003-09-12 Thread Gerry Duprey
Howdy, Thanks - that was it for sure - the 7.3.2 PGSQL JDBC driver didn't handle it. I upgraded to 7.3.4 and things worked fine. Thanks again! Gerry Gavin King wrote: I think it is a bug in the Postgres implementation of JDBC batch updates. Gerry Duprey wrote: Howdy, I'm new to hibernate a

Re: [Hibernate] self-referential table cont'd

2003-09-12 Thread Warner Onstine
Ok, For some reason my Unit tests were passing when I wasn't using hibernate to persist (even though they shouldn't have), I found my problem (I wasn't initializing the internal Set before trying to use it - doh!). So, this is now working, but I am experiencing another problem. Here's my layout

Re: [Hibernate] bad performance during flush and help is needed.

2003-09-12 Thread Gavin King
Forget about the 500 transactions. The problem is this: with 300-500 objects in the session cache, a single transaction( with an single object inserted) takes about one second. It simply does *not* take a second to dirty check 500 objects, dude. Nowhere even close. If you think you can prove that

Re: [Hibernate] bad performance during flush and help is needed.

2003-09-12 Thread jiesheng zhang
First I have a source class like this. public class Source { Transaction tx; List pendingRemovedItems; public void beginTransaction() { // here I use ThreadLocal pattern. tx= ThreadState.getSession().beginTransaction(); }

[Hibernate] many-to-one and one-to-one

2003-09-12 Thread Giedrius Trumpickas
Hi, I have following situation: Parent table: ID - PK NAME MAIN_CHILD_ID - FK (has FK constraint) and can be null Child table: ID - PK NAME PARENT_ID - FK (has fk constraint) and not null Mapping for this looks like:

Re: [Hibernate] bad performance during flush and help is needed.

2003-09-12 Thread Josh Rehman
jiesheng zhang wrote: > Forget about the 500 transactions. The problem is > this: with 300-500 objects in the session cache, a > single transaction( with an single object inserted) > takes about one second. How long does a single transaction take in raw JDBC? I agree with Gavin's implicit suggesti

[Hibernate] Re: Postgresql array index exception creating a new record

2003-09-12 Thread Les Hazlewood
Thats right. The newest version has fixed the problem. The direct link to the file: (Note: this file requires a JRE 1.4 (or better) jvm): http://jdbc.postgresql.org/download/pg73jdbc3.jar Les Gavin King writes: I think it is a bug in the Postgres implementation of JDBC batch updates.

Re: [Hibernate] bad performance during flush and help is needed.

2003-09-12 Thread Gavin King
So, let me get this straight: you, *500 times* (a) obtain a new JDBC connection (b) start a transaction (c) do some work (d) commit the transaction and close the JDBC connection and you are surprised that this is slow?? Why would you not do it all in one transaction? Starting and stopping trans

Re: [Hibernate] bad performance during flush and help is needed.

2003-09-12 Thread jiesheng zhang
--- Gavin King <[EMAIL PROTECTED]> wrote: > So, let me get this straight: > > you, *500 times* > > (a) obtain a new JDBC connection > (b) start a transaction > (c) do some work > (d) commit the transaction and close the JDBC > connection Not quite that. I, *500 times* (a') using the same connec

Re: [Hibernate] Postgresql array index exception creating a new record

2003-09-12 Thread Juozas Baliuka
Dissable batch updates, there is no batch updates in server protocol, driver just emulates this feature and it will not increase performance on postgresql at this time. > I think it is a bug in the Postgres implementation of JDBC batch updates. > > Gerry Duprey wrote: > > > Howdy, > > > > I'm n