I am using slick 2.1.0. Oracle doesn't have a notion of auto increment attribute for a column, so how can I manage an insert via slick using a sequence. e.g. I have a table & sequence as follows :
CREATE TABLE USER ( "USER_ID" NUMBER NOT NULL ENABLE, "NAME" VARCHAR2(100) NOT NULL ENABLE, "ADDRESS" VARCHAR2(1000) NOT NULL ENABLE ); CREATE SEQUENCE USER_ID_SEQ MINVALUE 1 MAXVALUE 99999999999999 INCREMENT BY 2;
How can I use this sequence to set my USER_ID?
Also setting autoIncLastAsOption = true in Slicks's SourceCodeGenerator doesnt seem to help. My IDs are still not an Option[].