Fixed issue with entity generator when dealing with a mysql database that has views.