ソースを参照

fix required field detection

tags/2.0.1
Jonathan Cobb 4年前
コミット
661578b96b
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityConfig.java

+ 4
- 4
wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityConfig.java ファイルの表示

@@ -555,10 +555,10 @@ public class EntityConfig {
HasValue hasValueAnnotation = accessor.getAnnotation(HasValue.class);
if (hasValueAnnotation != null) return true;
Column columnAnnotation = accessor.getAnnotation(Column.class);
if (columnAnnotation == null) return true;
if (columnAnnotation.nullable()) return false;
if (!empty(columnAnnotation.columnDefinition()) && columnAnnotation.columnDefinition().matches("\\s+NOT\\s+NULL\\s*")) {
return true;
if (columnAnnotation == null) return false;
if (!columnAnnotation.nullable()) return true;
if (!empty(columnAnnotation.columnDefinition())) {
return columnAnnotation.columnDefinition().matches("\\s+NOT\\s+NULL\\s*");
}
return false;
}


読み込み中…
キャンセル
保存