facebook

4.0 with Hibernate 3

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #229970 Reply

    Thomas Trostel
    Participant

    Just a note so that others won’t get as frustrated.

    When MyEclipse generates the Hibernate hbm.xml files it will make them with a 2.0 DOCTYPE element. If you leave them that way they will work okay BUT …

    if your internet connectivity goes down you get a cryptic failure to connect message … so you really need to replace them with the following code:

    <!DOCTYPE hibernate-mapping PUBLIC
    “-//Hibernate/Hibernate Mapping DTD//EN”
    http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd”&gt;

    THEN everything works great 🙂

    May all your JUnit tests run clean

    Tom T

    #230000 Reply

    Riyad Kalla
    Member

    Tom,
    Thank you for the tip, we appreciate you posting that for everyone.

    #230356 Reply

    Werner Punz
    Member

    Hi, I just moved to hibernate3 with a project and I can second that it works (I even didnt have to replace
    the xml dtd headers, but it cannot hurt to do it)
    It would be great to have that stuff directly built in in the next myeclipse releases, since it seems to be a cosmetic change only, anyway.

    #230369 Reply

    Thomas Trostel
    Participant

    You don’t have to change the headers but if you don’t it actually makes a connection over the Internet to draw down the Hibernate 2 DTDs.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: 4.0 with Hibernate 3

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