mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Tidy internal MTable only for test only constructor (remove @Deprecated)
This commit is contained in:
1 parent
846afba724
commit
356af08f68
1 file changed
+6
-31
@@ -1,36 +1,12 @@
|
|||||||
package io.ebeaninternal.dbmigration.model;
|
package io.ebeaninternal.dbmigration.model;
|
||||||
|
|
||||||
import io.ebeaninternal.dbmigration.ddlgeneration.platform.DdlHelp;
|
import io.ebeaninternal.dbmigration.ddlgeneration.platform.DdlHelp;
|
||||||
import io.ebeaninternal.dbmigration.migration.AddColumn;
|
import io.ebeaninternal.dbmigration.migration.*;
|
||||||
import io.ebeaninternal.dbmigration.migration.AddHistoryTable;
|
import io.ebeaninternal.server.deploy.*;
|
||||||
import io.ebeaninternal.dbmigration.migration.AddTableComment;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.AlterColumn;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.AlterTable;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.Column;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.CreateTable;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.DropColumn;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.DropHistoryTable;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.DropTable;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.ForeignKey;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.RenameColumn;
|
|
||||||
import io.ebeaninternal.dbmigration.migration.UniqueConstraint;
|
|
||||||
import io.ebeaninternal.server.deploy.BeanDescriptor;
|
|
||||||
import io.ebeaninternal.server.deploy.BeanProperty;
|
|
||||||
import io.ebeaninternal.server.deploy.IdentityMode;
|
|
||||||
import io.ebeaninternal.server.deploy.PartitionMeta;
|
|
||||||
import io.ebeaninternal.server.deploy.TablespaceMeta;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import static io.ebeaninternal.dbmigration.ddlgeneration.platform.SplitColumns.split;
|
import static io.ebeaninternal.dbmigration.ddlgeneration.platform.SplitColumns.split;
|
||||||
import static io.ebeaninternal.dbmigration.model.MTableIdentity.fromCreateTable;
|
import static io.ebeaninternal.dbmigration.model.MTableIdentity.fromCreateTable;
|
||||||
@@ -110,8 +86,7 @@ public class MTable {
|
|||||||
/**
|
/**
|
||||||
* Constructor for test cases only!
|
* Constructor for test cases only!
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
MTable(String name) {
|
||||||
public MTable(String name) {
|
|
||||||
this(name, null, null);
|
this(name, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,8 +136,8 @@ public class MTable {
|
|||||||
this.storageEngine = createTable.getStorageEngine();
|
this.storageEngine = createTable.getStorageEngine();
|
||||||
if (createTable.getTablespace() != null) {
|
if (createTable.getTablespace() != null) {
|
||||||
this.tablespaceMeta = new TablespaceMeta(createTable.getTablespace(),
|
this.tablespaceMeta = new TablespaceMeta(createTable.getTablespace(),
|
||||||
createTable.getIndexTablespace() != null ? createTable.getIndexTablespace() : createTable.getTablespace(),
|
createTable.getIndexTablespace() != null ? createTable.getIndexTablespace() : createTable.getTablespace(),
|
||||||
createTable.getLobTablespace() != null ? createTable.getLobTablespace() : createTable.getTablespace());
|
createTable.getLobTablespace() != null ? createTable.getLobTablespace() : createTable.getTablespace());
|
||||||
} else {
|
} else {
|
||||||
this.tablespaceMeta = null;
|
this.tablespaceMeta = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user