[Geoserver-users] WFS-T : getNextFeatureId ?

Hello everyone!
In the application I'm working on, we are using geotools to access WFS
server. So far, we are able to display the data, to update it, but the
insertion of new feature is giving me problem.

In our application, user can add new feature and work with it before even
committing the new feature to the database because we cache the data. When
we use Postgresql as a datastore, we can use the function nextVal() to get
the next id for our feature, and postgresql will create a new id which is
the last in the sequence before even committing the new feature to the
database. So we don't have any problem concerning the id.
But with WFS, there is no such thing as far as I know, the only way for me
is to insert a dummy feature to get the id and then work with the feature.
That might create some trash in the database if the user decide not to
commit these data, or the application crash before committing to WFS.

If anyone know a way with geotools to send a command to get the latest
feature id from a featureType without inserting the feature, please help!

Thank in advance.

Anh Phuong, Tran
--
View this message in context: http://www.nabble.com/WFS-T-%3A-getNextFeatureId---tf4807919.html#a13756230
Sent from the GeoServer - User mailing list archive at Nabble.com.