It's possible to run ODE on CloudFoundry, but is actually impossible to use a CloudFoundry Mysql instance as backend database.
I had wrote, with the help of Alessio Carenini a small patch (that you can find attached) that allow this.
The patch is a bit rough, but is only a starting point. We are sharing it to get feedback and know if this can interest others users and developers.
For deploy to CloudFoundry you should modify your ODE config and use:
where mysql-instance is the name of your CloudFoundry Mysql service binded to the ODE application.