facebook

hibernate.cfg.xml -> how to control what is generated

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

    Hi,

    Have created a couple of mappings to particular tables, I see that the hibernate.cfg.xml file has the locations to the mapping files. How do I now change where the mapping file should be located?

    I initially moved it manually, the updated the hibernate.cfg.xml file manually… but I see that they get overridden. Although I tried to recreate the mappings in a new location, I now have TWO mappings. The old one won’t go away. How do I edit or get rid of it?

    Thanks and regards,
    Peter

    #230752 Reply

    Riyad Kalla
    Member

    Peter,
    From the MyEclipse DB Perspective, every time you generate a new mapping for tables, you are asked for the location, base class, and generators. Are you not seeing this? I imagine you could just regenerate the classes and specify your new location.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: hibernate.cfg.xml -> how to control what is generated

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