From: Jody G. <jga...@re...> - 2005-08-04 19:48:57
|
Ehud Shabtai wrote: >I'm using postgis with a table which has an 'id' column. It is a >primary key and generated automatically. When I create a new feature >using gt2, how can I receive the new generated ID? > > When you configure your DB Datastore you do so with a FidMapper, for postgis it is willing to map primary key to FID automagically. As for the API, the resulting fid is returned when you add the features (probably a Set<String> ? ). Cheers, Jody |