User UUID is not set

Description

I have the table with UUID key and want use for them UUID 7 version that have two good thing - sequentiality and storing creating record datetime

There are three way for it - use key from database, set default UUID generation in geoserver and use parameter idgen for wfs-t insert transaction First variant do not implements in geoserver, second also. Last variant is good choice, but not working when I try to call it from my app use geotools library

It is not clear how to set the user identifier. Setting the parameter idgen="UseExisting" is possible only in objects of the InsertElementTypeImpl type.

feature.getUserData().put(Hints.USE_PROVIDED_FID, Boolean.TRUE); - does not work

This was achieved only by overriding the Strategy createInsert method and adding the line, but this is only possible in WFS 1.1:

 

Maybe I'm wrong, but WFS2.0 doesn't provide for this at all.

You can view the code and run the test: GITHUB

Environment

Geotools: 32.0
Geoserver: 2.25.0

Activity

Show:

kfgisbis December 2, 2024 at 12:04 PM

fixed


Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 2, 2024 at 12:15 PM
Updated December 2, 2024 at 1:11 PM
Resolved December 2, 2024 at 1:11 PM