I generated hibernate mappings for an existing database through the Database Explorer. I had to customize the mappings because of some many-to-many associations that weren’t automatically generated. The hibernate mapping files all state:
<!– DO NOT EDIT: This is a generated file that is synchronized –>
<!– by MyEclipse Hibernate tool integration. –>
How does one modify the hibernate mapping files and regenerate java source to include the newly added many-to-many associations?
At this time you are on your own for synchronizing mapping to code – MyEclipse currently only supports forward generation from the database to mapping and code. I suggest you using the hbm2java tool that comes with Hibernate for the time being. There will be more support for this kind of sync’ing in a future release (post 3.8.3).