- This topic has 8 replies, 2 voices, and was last updated 17 years 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.
May 8, 2008 at 2:04 pm #284809
Loyal WaterMemberCan you switch to a new workspace (File > Switch Workspace > Temp) and test this again. Does the problem persist ?
May 8, 2008 at 3:00 pm #284811
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.
May 8, 2008 at 10:19 pm #284821
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?
May 9, 2008 at 11:54 am #284843
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/May 15, 2008 at 11:44 am #285020
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? 🙂
May 15, 2008 at 1:14 pm #285030
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,
June 11, 2008 at 11:53 am #285805
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
June 12, 2008 at 9:59 am #285840
Loyal WaterMemberDid you upgrade to 6.0.1? Your working with the MySQL database?
-
AuthorPosts