import org.apache.cayenne.merge.SetAllowNullToDb;
public class FirebirdMergerFactory extends MergerFactory {
public MergerToken createDropColumnToDb(DbEntity entity, DbAttribute column) {
return new DropColumnToDb(entity, column) {
public List<String> createSql(DbAdapter adapter) {
QuotingStrategy quoting = adapter.getQuotingStrategy();
StringBuilder builder = new StringBuilder("ALTER TABLE ");
builder.append(quoting.quotedFullyQualifiedName(getEntity()));
builder.append(" DROP ").append(quoting.quotedName(getColumn()));