MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ttrostel
Post subject: 4.0 with Hibernate 3  PostPosted: May 20, 2005 - 03:23 PM
Veteran Member
Veteran Member


Joined: Jun 14, 2004
Posts: 93

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">


THEN everything works great :-)

May all your JUnit tests run clean

Tom T
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: May 21, 2005 - 12:43 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
werpu
Post subject:   PostPosted: May 30, 2005 - 12:58 AM
Veteran Member
Veteran Member


Joined: Jul 02, 2003
Posts: 61

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ttrostel
Post subject:   PostPosted: May 30, 2005 - 02:12 PM
Veteran Member
Veteran Member


Joined: Jun 14, 2004
Posts: 93

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits