Currently, an exception is thrown if a sequenced
column is part of a compound primary key. This is
because the CompoundPrimaryKeyColumnSpec defaults to
setRequired(true) which requires all fields to have a
value on an insert. Since the sequence is not
assigned until after that step, the validateRequired()
fails.
To get around this, the following files were modified:
CompoundPrimaryKeyColumnSpec:
addColumnSpec() was modified to NOT set the column
spec as required.
getSequencedColumn() was added to allow the retrieval
of a sequenced column within the column spec. It is
assumed that at most ONE sequenced column will exist.
InsertSQLBuilder:
buildSQL() was modified to include a conditional
statement to handle CompoundPrimaryKeyColumnSpecs.