default columnDef should be calculated from ebean

This commit is contained in:
Noemi Szemenyei committed 2022-02-18 10:02:48 +01:00
1 parent 137a7950ff
commit c2e4f862bc
3 files changed
+15 -4

No files matched your search

@@ -992,6 +992,9 @@ public class BeanProperty implements ElPropertyValue, Property, STreeProperty {
*/
public String renderDbType(DbPlatformType dbType, boolean strict) {
if (dbColumnDefn != null) {
if(dbColumnDefn.endsWith(";")) {
return dbColumnDefn + dbType.renderType(dbLength, dbScale, strict);
}
return dbColumnDefn;
}
return dbType.renderType(dbLength, dbScale, strict);