1. Create datasource and open it
2. Let's have JPA Project referenced datasource from step above
3. Create entity M with table name Z, you'll get Table "Z" cannot be resolved
4. Project -> JPA Tools -> Generate Tables from Entities with "Check Export to database" selected
5. Finish
After doing this project entity is not yet valid
It would be nice, if connection could be refreshed and code revalidated automatically after export to db (it could be also configurable if desired)