- This topic has 8 replies, 2 voices, and was last updated 16 years, 4 months ago by Loyal Water.
-
AuthorPosts
-
jamicideMemberRecently my hibernate mapping generator stopped working as I expect it to. I don’t remember making any settings changes.
Now, if I attempt to generate a hibernate mapping from a InnoDB table, the generated Java classes don’t use Sets and/or Java objects to represent FK relationships. The sets have simply disappeared, and the Java objects are instead integers representing the ID of the object in the other table (as I am used to seeing when generating classes from MyISAM tables).
I have tried this across multiple projects, all with the same result.
Any advice on how to get this working properly again? I am using MyEclipse v4.1.1-GA
Thanks in advance.
Loyal WaterMemberCan you switch to a new workspace (File > Switch Workspace > Temp) and test this again. Does the problem persist ?
jamicideMemberIf I try and generate a class from another workspace, an error pops up:
An internal error occurred during: “Generating Artifacts”.
In this new workspace I had to re-setup the driver connection details, but I’m fairly certain I did that correctly.
jamicideMemberA slight update. I fixed the generating artifacts problem and was able to correctly generate the Java classes from the InnoDB tables.
What might be wrong with my original workspace to cause the error?
Loyal WaterMemberI guess you old workspace might have gone corrupt. You can try switch back to your old workspace and using the -clean command to try and fix it:-
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/
jamicideMemberA bit of an update. Switching to the new workspace did not fix my problem. Not quite sure what I saw that first time around.
Also, running clean seems to have no effect on my problem.
Any more suggestions? 🙂
Loyal WaterMemberI would suggest you grab the latest version of MyEclipse (6.0.1 GA), setup MyEclipse to a brand new location and test this out again,
jamicideMemberAnother update.
I can correctly generate the Hibernate classes when I connect to other databases – it seems to be that only when trying to generate the classes from my local database is there an error. Can you think of any database settings that could account for this?
Thanks
Loyal WaterMemberDid you upgrade to 6.0.1? Your working with the MySQL database?
-
AuthorPosts