io.convergence_platform.common.database.blueprints.TableColumnBlueprint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.common.database.blueprints;
public class TableColumnBlueprint {
public String name;
public String type;
public boolean isPrimaryKey;
public boolean isUnique;
public boolean allowNull;
public String defaultValue;
public TableColumnBlueprint(String name, String type, boolean isPrimaryKey, boolean isUnique, boolean allowNull, String defaultValue) {
this.name = name;
this.type = type;
this.isPrimaryKey = isPrimaryKey;
this.isUnique = isUnique;
this.allowNull = allowNull;
this.defaultValue = defaultValue;
}
public TableColumnBlueprint(String name, String type) {
this.name = name;
this.type = type;
this.isPrimaryKey = false;
this.isUnique = false;
this.allowNull = false;
this.defaultValue = null;
}
}