From eb1ed0bdd0623e462850a553676de8af462243ca Mon Sep 17 00:00:00 2001 From: Roland Praml Date: Thu, 17 Mar 2022 13:07:52 +0100 Subject: [PATCH] DbColumDefault must be returned although if individual columnDefinition is specified (cases no DDL change) We support optional platform columnDefinitions now. E.g. "db2;clob(64M);" - so we must not ignore @DbDefault for all other platforms --- .../main/java/io/ebeaninternal/server/deploy/BeanProperty.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebean-core/src/main/java/io/ebeaninternal/server/deploy/BeanProperty.java b/ebean-core/src/main/java/io/ebeaninternal/server/deploy/BeanProperty.java index 6dd11ffbe..7ab4afe3e 100644 --- a/ebean-core/src/main/java/io/ebeaninternal/server/deploy/BeanProperty.java +++ b/ebean-core/src/main/java/io/ebeaninternal/server/deploy/BeanProperty.java @@ -1004,7 +1004,7 @@ public class BeanProperty implements ElPropertyValue, Property, STreeProperty { * Return the DB column default to use for DDL. */ public String dbColumnDefault() { - return dbColumnDefn != null ? null : dbColumnDefault; + return dbColumnDefault; } /**