I’m trying to insert a new Datarecord with code.
WorkRole rec3 = new WorkRole();
CommitContext commitContext = new CommitContext(); commitContext.getCommitInstances().add(rec3); commitContext.getViews().put(rec3, workRolesDs.getView()); dataManager.commit(commitContext);
The Entity WorkRole is derived from BaseIntegerIdEntity. The above Code allways claims:
SQLException: Cannot insert the value NULL into column ‘ID’, table ‘salary.dbo.SALARY_WORK_ROLE’; column does not allow nulls. INSERT fails.
Since ID is the PK Field I would expect that the field is handled by the framework? Btw. the underlying DB is MSSQL 2014.