I'm using Hibernate 4.1.9 with Postgres 9.0 and this bug is still there. Here's the stack trace for the PSQL exception:
Caused by: org.postgresql.util.PSQLException: Valor inválido para tipo int : aereo [Sorry for the portuguese, but it says "invalid type for type int: aereo", where aereo is the discriminator column whose type is String]
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toInt(AbstractJdbc2ResultSet.java:2759)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt(AbstractJdbc2ResultSet.java:2003)
at org.hibernate.id.IdentifierGeneratorHelper.get(IdentifierGeneratorHelper.java:117)
at org.hibernate.id.IdentifierGeneratorHelper.getGeneratedIdentity(IdentifierGeneratorHelper.java:86)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:98)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
... 80 more
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
I'm using Hibernate 4.1.9 with Postgres 9.0 and this bug is still there. Here's the stack trace for the PSQL exception:
Caused by: org.postgresql.util.PSQLException: Valor inválido para tipo int : aereo [Sorry for the portuguese, but it says "invalid type for type int: aereo", where aereo is the discriminator column whose type is String]
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toInt(AbstractJdbc2ResultSet.java:2759)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt(AbstractJdbc2ResultSet.java:2003)
at org.hibernate.id.IdentifierGeneratorHelper.get(IdentifierGeneratorHelper.java:117)
at org.hibernate.id.IdentifierGeneratorHelper.getGeneratedIdentity(IdentifierGeneratorHelper.java:86)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:98)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
... 80 more