facebook

Change database properties for ER diagram

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

    Martin
    Member

    Hi,

    I recently created a new desktop for which I had to re-create the DB connections in the DB Browser. Now “Refresh Table” in an existing ERD leads to a “driver not found”-error.

    How can I tell the ER designer which DB connection to use?

    Regards,
    Martin.

    #291804 Reply

    Brian Fernandes
    Moderator

    Martin,

    Open the .mer file in a text editor. You will see a <Connection> element with a session attribute. Replace the value of that attribute with the name of your connection in the DB Browser view.
    If you made this change outside eclipse, be sure to refresh the file before attempting to open it in the MyEclipse ER Designer.

    Hope this helps

    #291823 Reply

    Martin
    Member

    Thanks Brian,

    that did the trick.

    BTW: Opening the .mer-file with the MyEclipse XML Editor leads to an error message saying “Unsupported Content Type” and the note, that i should associate the file extension with a content type. Why isn’t it enough for the XML editor, that the file indeed contains xml, even more that it starts with an XML header?

    Regards,
    Martin.

    #291896 Reply

    Brian Fernandes
    Moderator

    Martin,

    I’m glad that worked.
    About the XML problem, the “Eclipse” way is to actually setup a content type association instead of the file association; it’s necessary for some advanced stuff like encoded and content assist. Having said that it should not have complained so loudly, we’ll look into it.

    Thanks!

    #291926 Reply

    Martin
    Member

    Thanks, Brian. It’s not the complaint that awkward here, but: the file is opened in the text editor, and all xml-specific stuff (formatting, folding) ist not working. I definitely prefer the “content type way2 instead of “file extension way”, the best would be some kind of automatic content type detection.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Change database properties for ER diagram

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