Skip to content

Commit 4a0716d

Browse files
committed
Fixed bug introduced in the last commit
1 parent db01785 commit 4a0716d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/javaxt/orm/Field.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class Field {
1818
private boolean unique = false;
1919
private Object defaultValue = null;
2020
private Integer length;
21+
private boolean isModel = false;
2122
private ForeignKey foreignKey;
2223

2324

@@ -95,6 +96,7 @@ else if (type.equalsIgnoreCase("geometry")){
9596
}
9697
else{ //Single model
9798

99+
isModel = true;
98100
columnName = columnName + "_id";
99101
columnType = "bigint";
100102

@@ -142,7 +144,7 @@ public boolean isLastModifiedDate(){
142144
}
143145

144146
public boolean isModel(){
145-
return foreignKey!=null;
147+
return isModel;
146148
}
147149

148150
public boolean isArray(){

0 commit comments

Comments
 (0)