If it's an option, you can try with this solution: https://docs.geoserver.org/stable/en/user/data/database/primarykey.html
On Fri, Sep 15, 2023 at 12:31 PM mark <mc.pr...@gmail.com> wrote: > Op 15-09-2023 om 10:41 schreef Alexandre Gacon: > > Hello, > > > > Is there a way with a SQL View layer to keep the field marked as > > 'identifier' in the attributes of the layer, in order to get it when > > requesting the layer with WFS? For the moment we duplicate the field in > > the view. > > Do you have the "expose primary keys" flag set on the datastore? I would > think that should take care of that. > > -M > > > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users