primaryKeyColumns
Return the list of columns that make the primary key.
This effectively represents a table, its columns and all associated constraints, foreign keys and indexes.
Migrations can be applied to this such that it represents the state of a given table after various migrations have been applied.
This table model can also be derived from the EbeanServer bean descriptor and associated properties.
MTable(CreateTable createTable) MTable(io.ebeaninternal.server.deploy.BeanDescriptor<?> descriptor) voidaddColumnScalar(String dbColumn,
String columnDefn) voidaddForeignKey(MCompoundForeignKey compoundKey) voidaddForeignKey(String name,
String refTableName,
String indexName,
String columnNames,
String refColumnNames) voidaddUniqueConstraint(MCompoundUniqueConstraint uniqueConstraint) voidadjustReferences(ModelContainer modelContainer) allHistoryColumns(boolean includeDropped) voidvoidapply(AlterColumn alterColumn) voidapply(DropColumn dropColumn) voidapply(RenameColumn renameColumn) voidvoidvoidgetName()io.ebeaninternal.server.deploy.PartitionMetaio.ebeaninternal.server.deploy.TablespaceMetabooleanbooleanisDraft()booleanbooleanvoidregisterPendingDropColumn(String columnName) voidremoveForeignKey(String name) voidsetComment(String comment) voidvoidsetTablespaceMeta(io.ebeaninternal.server.deploy.TablespaceMeta tablespaceMeta) setWithHistory(boolean withHistory) voidNote that both tables contain @DraftOnly MColumns and these are filtered out later when creating the CreateTable object.
This means this column still needs to be included in history views/triggers etc even though it is not part of the current model.
This can occur when an ManyToMany relates back to itself.