This is the ant task I’m using to generate POJO and mapping files from a DB Schema (mysql).