8.x driver with EJB CMP - Mailing list pgsql-jdbc

From
Subject 8.x driver with EJB CMP
Date
Msg-id 4F61EAB5B670854A80F7365549454E160157AB0D@jacexchange02.gc.gov
Whole thread Raw
Responses Re: 8.x driver with EJB CMP
List pgsql-jdbc

 

Hi,

I am using JBoss 4.x with PosrgreSQL 8.x JDBC postgresql-8.0-311.jdbc3.jar. I have a CMP EJB that has a setter:

void setCreationDate(java.sql.Date creationDate);

When I use the setter in my ejbCreate() call:

setCreationDate( new java.sql.Date( new java.util.Date().getTime() ) );

it throws an SQLException : Could not create entity:java.sql.SQLException: ERROR: column "creation_date" is of type date but expression is of type character varying.

What am i doing wrong ??

 

The same code works like a charm with 7.4x driver.

pgsql-jdbc by date:

Previous
From: Sathyajith G
Date:
Subject: exception while upgrading driver
Next
From: Kris Jurka
Date:
Subject: Re: exception while upgrading driver