My mysql server is version 5.0. I use eclipse, have configured a connector with mysql-connector-java-5.0.8.jar. On the database side, I have a with about 10 tables with all of them connected to each other somehow (means directly or indirectly).

On a JPA project if I do JPA Tools→Generate Entities From tables option, during the creation process, it picks up all the tables (and I select them all), if I press next it picks up 'some' of the relationships, for the sake of testing, if I press next, in the 'Tables and Columns' field it would claim that it would create classes for all the tables and if I press 'Finish' at this point, it will take some time to generate the classes. Once finished if I go into the package there are few classes missing. And it is always the same set of classes that go missing. I tried it on both Linux and Windows. Additionally, all the classes (that were supposed to be created, including those missing ones) are correctly added to the persistance.xml.

I know the question may appear very vague. It is mainly because, I am pretty new to this kind of project. Please let me know if you need more information in this regard.