facebook

How does one regenerate hibernate mappings?

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #219170 Reply

    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?

    #219221 Reply

    support-jeff
    Member

    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).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How does one regenerate hibernate mappings?

You must be logged in to post in the forum log in