I have put a map on website using OpenLayers. This map is fetched from geoserver by using wms request. and in the same way, it is drawn some shapes such as point, line etc. using open layers library in this simple project.

My Spatial data(tables) is held on Oracle spatial database. as I mentioned above, these tables are served by geoserver to the web page and are mapped using open layers library.

How can I save new changes on map to related to Database Table When I draw a new shape on this map?

unchanged image(which is fetched via geoserver)

changed image(some shapes is drawn on map that is called changed image)

When it has occurred changes, the second image was created.