db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Leg <hale_in...@yahoo.com>
Subject How to use TimeStamp with OJB
Date Tue, 07 Jun 2005 17:15:55 GMT
Hi

I use OJB with postgres.
When using postgres without Ojb, I use TimeStamp, by creating some table 
field, non nullable and TimeStamp.
Like that every time we enter data, a timeStamp is created in this field.

But with Ojb I get an error telling me that I am trying to create a 
record with a null value in a non nullable field.
Caused by: org.postgresql.util.PSQLException: ERROR : null value in 
column "created" violates not-null constraint.

How can I solve this issue ?

Best regards

Andre Legendre

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Mime
View raw message