I don't know the answer, but it should be compatible with this:
https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#getGeneratedKeys()
You don't think there is a problem in version 4.6 of traccar
You should be able to easily verify that by running original Traccar.
So what should to be?? and can you suggest me a sql request to return the position id