- This topic has 6 replies, 4 voices, and was last updated 19 years, 8 months ago by Ruchir Awadhawal.
-
AuthorPosts
-
icon911MemberWhen I originally added Hibernate support to my project I did not create my hibernate.config.xml file properly. Now I removed that file and added a new hibernate.config.xml that works properly(again using wizard). However, every time I map a new table in hibernate myeclipse synchronizer I my hibernate.config.xml file gets overwritten with the old file. Any way I can get myeclipse to use the new file? Its the same name and both files were created with same wizard.
Thanks
Riyad KallaMembericon,
Do you have the Hibernate Synchronizer plugin installs or are you using the built in Hibernate support in MyEclipse? The erason I ask is because you said “hibernate myeclipse synchronizer”, which made me wonder if the two plugins are fighting with eachother…
icon911MemberI do not have the Hibernate Synchronizer plugin, sorry about the confusion. I only have MyEclipse plugin and hibernate config files gest overwritten every time I try to add new mapping.
Riyad KallaMemberhibernate config files gest overwritten every time I try to add new mapping.
Ahh, this is the correct behiavor, it is regenned each time. We are making some big enhancements to it for the next few releases though, so this won’t be the case for long.
icon911MemberSo how do I stop it from overwriting my original settings before next release?
Is there a property file I can just edit or should I keep a copy on the side and just paste it over, I am not complaining 🙂 this is a very small price to pay to have myEclipse!!!!
support-jeffMemberYou can modify the .myhibernatedata file in your project to fix the problem values. That way, when you regen the config file when adding mappings, the correct info is copied in.
And Riyad is correct. This is currently the correct behavior (although not the most desireable). This will be fixed with upcoming enhancements (unfortunately, no dates yet).
Ruchir AwadhawalMemberHi
I had the same problem and after some research i realized that what i needed to do. One thing is that we badly need a “Modify Hibernate Configuration File” Feature in hibernate or the new “Hibernate Configuration File” Wizard should rewrite the configuration data in .myhibernatedata .
I am right now using the quick fix as suggested by Jeff.
Regards
Ruchir -
AuthorPosts