Preheat the oven to 425℉. Spray a 9x13-inch glass dish with nonstick spray.
In a large bowl, combine all of the ingredients for the beans. Then scrape this mixture into the prepared dish.
In a medium bowl, whisk together the flour, cornmeal, sugar, baking powder and salt. Whisk in the milk, butter and egg. Spoon the cornbread mixture over the beans, leaving a 1-inch gap on the edges.
Bake for 25 to 30 minutes, until the topping is golden brown.