code: public void serializeInsert(QueryMetadata metadata, RelationalPath<?> entity,
                                  List<SQLInsertBatch> batches, SQLSerializer context) {
          context.serializeForInsert(metadata, entity, batches);
  
          if (!metadata.getFlags().isEmpty()) {
              context.serialize(Position.END, metadata.getFlags());
          }
      }
docs: template method for INSERT serialization
  
  @param metadata
  @param batches
  @param context