I have created a database in Oracle 11G
, where there is a sequence to make the autoincrementable records:
CREATE SEQUENCE S_CATEGORIA MINVALUE 1 START WITH 1 INCREMENT BY 1 NOCACHE;
Through a webservice I need to save a new record to the category table, in this there is no problem without using the sequence.
This is the structure I use to send:
<categorias>
<categoriaId>1</categoriaId> //ID de la categoria, aqui debo utilizar la secuencia
<descripcion>Aceites</descripcion> //Descripcion
</categorias>
How could I send the data so that I consider using the sequence that is in the BD ??
Thanks for your help ... Greetings _!