auto set ID to int
This commit is contained in:
parent
aca4c8d933
commit
1be3380560
@ -1366,6 +1366,11 @@ public class B3
|
||||
|
||||
for (Graphic_Main_Elem gme : readModel) {
|
||||
gme.setGc(this.currentTab.canvas.getGraphicsContext2D());
|
||||
if(gme instanceof Graphic_ATTR_Elem) {
|
||||
if(gme.name.equalsIgnoreCase("id")) {
|
||||
((Graphic_ATTR_Elem) gme).datatype = "int";
|
||||
}
|
||||
}
|
||||
|
||||
gme.isVisible = true;
|
||||
}
|
||||
|
@ -43,6 +43,9 @@ public abstract class Graphic_ATTR_Elem
|
||||
}
|
||||
this.columnPostfix = "";
|
||||
this.datatype = "varchar(100)";
|
||||
if(this.name.equalsIgnoreCase("id")) {
|
||||
this.datatype = "int";
|
||||
}
|
||||
this.isAutoincrement = false;
|
||||
|
||||
this.isKey = this instanceof Graphic_ATTR_Key_Elem || this instanceof Graphic_ATTR_Weak_Key_Elem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user