Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Current timestamp with Postgres

paul_deg

2008-09-05


Author LoginPost Reply

Looks like in Postgres 8.3 a timestamp column defined with default value
"now()" gets this value only when the column is omitted from insert clause.
Is there a way to do that in OpenJpa for a persistent field?
I tried "insertable=false, updateable=false", as was recommended here but it
does not work, updateable seems to have no effect, insertable triggers
exception "cannot insert null..."
--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.