@Override
    public MergerToken createSetNotNullToDb(DbEntity entity, DbAttribute column) {
        return new SetNotNullToDb(entity, column) {
            @Override
            public List<String> createSql(DbAdapter adapter) {
                /*
                 * TODO: we generate this query as in ingres db documentation,
                 * but unfortunately ingres don't support it
                 */
                StringBuilder sqlBuffer = new StringBuilder();
                QuotingStrategy context = adapter.getQuotingStrategy();
                sqlBuffer.append("ALTER TABLE ");
                sqlBuffer.append(getEntity().getFullyQualifiedName());
                sqlBuffer.append(" ALTER COLUMN ");
                sqlBuffer.append(context.quotedName(getColumn()));
                sqlBuffer.append(" ");
                sqlBuffer.append(adapter.externalTypesForJdbcType(getColumn().getType())[0]);
                if (adapter.typeSupportsLength(getColumn().getType()) && getColumn().getMaxLength() > 0) {
                    sqlBuffer.append("(");
                    sqlBuffer.append(getColumn().getMaxLength());
                    sqlBuffer.append(")");
                }
                sqlBuffer.append(" NOT NULL");
                return Collections.singletonList(sqlBuffer.toString());
            }
        };
    }
@Override
    public MergerToken createSetNotNullToDb(DbEntity entity, DbAttribute column) {
        return new SetNotNullToDb(entity, column) {
            @Override
            public List<String> createSql(DbAdapter adapter) {
               
                StringBuilder sqlBuffer = new StringBuilder();
                QuotingStrategy context = adapter.getQuotingStrategy();
                sqlBuffer.append("ALTER TABLE ");
                sqlBuffer.append(getEntity().getFullyQualifiedName());
                sqlBuffer.append(" ALTER COLUMN ");
                sqlBuffer.append(context.quotedName(getColumn()));
                sqlBuffer.append(" ");
                sqlBuffer.append(adapter.externalTypesForJdbcType(getColumn().getType())[0]);
                if (adapter.typeSupportsLength(getColumn().getType()) && getColumn().getMaxLength() > 0) {
                    sqlBuffer.append("(");
                    sqlBuffer.append(getColumn().getMaxLength());
                    sqlBuffer.append(")");
                }
                sqlBuffer.append(" NOT NULL");
                return Collections.singletonList(sqlBuffer.toString());
            }
        };
    }
@override public mergertoken createsetnotnulltodb(dbentity entity, dbattribute column) { return new setnotnulltodb(entity, column) { @override public list<string> createsql(dbadapter adapter) { stringbuilder sqlbuffer = new stringbuilder(); quotingstrategy context = adapter.getquotingstrategy(); sqlbuffer.append("alter table "); sqlbuffer.append(getentity().getfullyqualifiedname()); sqlbuffer.append(" alter column "); sqlbuffer.append(context.quotedname(getcolumn())); sqlbuffer.append(" "); sqlbuffer.append(adapter.externaltypesforjdbctype(getcolumn().gettype())[0]); if (adapter.typesupportslength(getcolumn().gettype()) && getcolumn().getmaxlength() > 0) { sqlbuffer.append("("); sqlbuffer.append(getcolumn().getmaxlength()); sqlbuffer.append(")"); } sqlbuffer.append(" not null"); return collections.singletonlist(sqlbuffer.tostring()); } }; }