Check constraint metadata - Mailing list pgsql-jdbc

From Roy Smith
Subject Check constraint metadata
Date
Msg-id 477F38F1.2090303@primetext.com
Whole thread Raw
Responses Re: Check constraint metadata
List pgsql-jdbc
Hi all

I've written an ant task which reverse engineers a postgresql database
into JPA Annotated Entity classes for Hibernate/TopLink etc. So far so good.

For my next trick I want to reverse engineer null/not null and check
constraints into Spring Validator classes so I can do validation in the
web tier (and potentially as downloaded JavaScript in the browser). The
reason I want to have validation based on check constraints is that the
database will potentially be updated from other legacy applications.

I can't see any custom extensions to extract check constraints - are
there any?

If I'm barking up the wrong tree, or if there is a better approach
please feel free.

many thankis
Roy





pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Timestamp problem
Next
From: Kris Jurka
Date:
Subject: Re: Missing fields in getColumns() result