[Hibernate] Postgres/JBoss/Hibernate problem

2002-12-16 Thread Владимир
  I am using JBoss 3.2.0-beta-2, Postgres 7.2 and JDK 1.3.1 as well as hibernate 1.2. I am having difficulty committing any changes that I make because I get error message saying: "java.sql.SQLException: You cannot commit with autocommit set!" bit of code: [java] Context ctx = new Init

[Hibernate] microsoft access dialect 3 - some revisions

2002-12-16 Thread Pietro Polsinelli
hi, this is a revised version of the dialect: public class MSAccessDialect extends Dialect { public MSAccessDialect() { super(); register( Types.BIT, "BIT" ); register( Types.BIGINT, "INTEGER" ); register( Types.SMALLINT, "S

[Hibernate] microsoft access dialect 3.1 - some revisions

2002-12-16 Thread Pietro Polsinelli
hi, I see that part of the previous post was cut, so I repost the last part (if I should post differently, maybe directly to Gavin let me know) : 13:17:18,667 DEBUG JDBCExceptionReporter:33 - SQL Exception com.inzoom.adojni.ComException: [Microsoft][ODBC Microsoft Access Driver]Optional

RE: [Hibernate] Postgres/JBoss/Hibernate problem

2002-12-16 Thread Gavin King
Title: Message You havn't really given enough info here (the problem certainly does *not* occur with "any settings in hibernate.properties"), but I will assume that you are using a Datasource (since otherwise Hibernate would set autocommit to false by itself). So the trick is to set up you

RE: [Hibernate] custom identifier class

2002-12-16 Thread Gavin King
Why don't you try stepping through code. Put a break point in AbstractEntityPersister.setIdentifier() and see exactly what class of object is passed in. (This should definately all work as advertised.) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tue

RE: [Hibernate] custom identifier class

2002-12-16 Thread phraktle
hi, excuse my arrogance for re-posting this, but i haven't found a solution for the problem described below: On Tue, 10 Dec 2002 12:34:56 -0500, [EMAIL PROTECTED] said: > hi, > > On Tue, 10 Dec 2002 10:34:30 +1100, "Gavin King" <[EMAIL PROTECTED]> > said: > > Oh, so it isn't actually a composite